Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
615 commits
Select commit Hold shift + click to select a range
214be94
rename a variable
open-junius May 25, 2026
b5c3273
fix ai comment
open-junius May 25, 2026
3698470
cargo clippy
open-junius May 25, 2026
4cad05c
ignore one write weight
open-junius May 25, 2026
a5c329b
cargo clippy
open-junius May 25, 2026
b855af3
fix conflict
open-junius May 26, 2026
3c6c002
cargo fmt
open-junius May 26, 2026
6df5589
Merge branch 'devnet-ready' into benchmark-dissolve-network
open-junius May 28, 2026
2662630
merge with devnet-ready
open-junius May 29, 2026
508cf8b
fix conflict
open-junius Jun 2, 2026
74d1cd9
fix all unit tests
open-junius Jun 2, 2026
69ad447
commit Cargo.lock
open-junius Jun 2, 2026
442261d
fix conflict
open-junius Jun 3, 2026
503c31d
fix unit test
open-junius Jun 3, 2026
4fa605f
fix unit test
open-junius Jun 3, 2026
dee84e2
set weigth for all function ops
open-junius Jun 3, 2026
ee67422
merge with devnet ready
open-junius Jun 5, 2026
22cd7d4
remove cleanup for rate limiter
open-junius Jun 5, 2026
15e1db6
Merge branch 'devnet-ready' into benchmark-dissolve-network
open-junius Jun 5, 2026
557779a
commit Cargo.lock
open-junius Jun 5, 2026
6047135
fix unit tests
open-junius Jun 5, 2026
2ef4e5b
fix unit tests
open-junius Jun 5, 2026
1c10833
fix parameter error
open-junius Jun 5, 2026
b0cad27
commit Cargo.lock
open-junius Jun 5, 2026
265fc76
fix conflict
open-junius Jun 7, 2026
b179fcc
cargo clippy
open-junius Jun 7, 2026
ef36e94
clean deprecated functions
open-junius Jun 7, 2026
a8f2bd3
Merge branch 'devnet-ready' into benchmark-dissolve-network
open-junius Jun 8, 2026
baf979b
Clean rate limits for hotkey/coldkey swaps
Jun 8, 2026
1c0572e
fix basic comments
open-junius Jun 10, 2026
4910038
refactor according to the comments
open-junius Jun 10, 2026
3b3340f
fix unit tests
open-junius Jun 10, 2026
c7b2e95
cargo clippy
open-junius Jun 10, 2026
695b504
cargo fmt
open-junius Jun 10, 2026
3c07c24
failed if no available netuid in scope
open-junius Jun 10, 2026
b5d800a
replace v1 epoch math with stateful v2 simulation for commit-reveal
basfroman Jun 10, 2026
9332087
add v2 epoch schedule vectors and python contract tests, remove v1 tests
basfroman Jun 10, 2026
72369c3
update versioning logic
basfroman Jun 10, 2026
28a9f48
update ffi
basfroman Jun 10, 2026
70fa293
Merge pull request #70 from latent-to/dependabot/cargo/rand-0.8.6
basfroman Jun 11, 2026
0124dea
Bump keccak from 0.1.5 to 0.1.6
dependabot[bot] Jun 11, 2026
9f6b6d7
Bump tokio from 1.41.1 to 1.43.1
dependabot[bot] Jun 11, 2026
38d6172
Bump bytes from 1.8.0 to 1.11.1
dependabot[bot] Jun 11, 2026
6f1d962
Bump quinn-proto from 0.11.9 to 0.11.14
dependabot[bot] Jun 11, 2026
ddc63f3
Merge branch 'main' into feat/basfroman/dynamic-tempo-support
basfroman Jun 11, 2026
6fa8707
Merge pull request #74 from latent-to/dependabot/cargo/bytes-1.11.1
basfroman Jun 11, 2026
32dfa96
Merge pull request #73 from latent-to/dependabot/cargo/tokio-1.43.1
basfroman Jun 11, 2026
2afbac7
Merge pull request #72 from latent-to/dependabot/cargo/keccak-0.1.6
basfroman Jun 11, 2026
79d3a60
Merge pull request #75 from latent-to/dependabot/cargo/quinn-proto-0.…
basfroman Jun 11, 2026
7da9766
refactor network registration
open-junius Jun 11, 2026
27b4354
fix unit tests
open-junius Jun 11, 2026
b83efe5
cargo clippy
open-junius Jun 11, 2026
a1378ff
cargo fmt
open-junius Jun 11, 2026
3911188
more unit tests
open-junius Jun 11, 2026
5ffde0b
fix linter
open-junius Jun 11, 2026
2931ff8
cleanup code
open-junius Jun 11, 2026
a8d37c8
commit Cargo.lock
open-junius Jun 11, 2026
8dac5f7
update document index
open-junius Jun 11, 2026
e7c2a57
fix conflict
open-junius Jun 11, 2026
f40907f
commit Cargo.lock
open-junius Jun 11, 2026
e2b0c03
commit Cargo.lock
open-junius Jun 11, 2026
d9e5b42
commit Cargo.lock
open-junius Jun 11, 2026
e20b873
commit Cargo.lock
open-junius Jun 11, 2026
0c3eb19
fix all unit tests after merge devnet-ready
open-junius Jun 11, 2026
dbfa848
remove macro and use function instead
open-junius Jun 11, 2026
e00a9fb
make code nicer
open-junius Jun 11, 2026
03e454c
minor fix according to comments
open-junius Jun 12, 2026
3ebc4b6
remove an empty file
open-junius Jun 12, 2026
6d09b8b
commit Cargo.lock
open-junius Jun 12, 2026
f30674e
commit Cargo.lock
open-junius Jun 12, 2026
03c0d07
derive typeInfo for TestMaxFields
open-junius Jun 12, 2026
bd00dce
add more subnet exist check
open-junius Jun 12, 2026
4c527f2
add an unit test
open-junius Jun 12, 2026
a03b14f
add more netuid exists check
open-junius Jun 12, 2026
c079857
fix all unit tests
open-junius Jun 12, 2026
4cec05f
fix all tests
open-junius Jun 12, 2026
1177c28
fix conflict
open-junius Jun 12, 2026
c222820
fix benchmark test
open-junius Jun 12, 2026
e206a2a
Bump pyo3 from 0.26.0 to 0.29.0
dependabot[bot] Jun 12, 2026
89e9467
merge with devnet ready
open-junius Jun 18, 2026
343f650
Merge pull request #71 from latent-to/feat/basfroman/dynamic-tempo-su…
basfroman Jun 18, 2026
eddde41
Merge pull request #76 from latent-to/dependabot/cargo/pyo3-0.29.0
basfroman Jun 18, 2026
7992aae
update CHANGELOG.MD
basfroman Jun 18, 2026
0dff71e
add description to pyproject.toml
basfroman Jun 18, 2026
d7baf97
Merge pull request #78 from latent-to/release/2.0.0
basfroman Jun 18, 2026
9ea5fb6
some fix according to comment
open-junius Jun 19, 2026
0fe3718
add test for cleanup helper function
open-junius Jun 19, 2026
58879bd
refactor a function
open-junius Jun 19, 2026
20f9164
refactor the status of cleanup
open-junius Jun 19, 2026
cc11248
refactor and correct all unit tests
open-junius Jun 19, 2026
440e627
cargo clippy
open-junius Jun 19, 2026
f3ee244
cargo fix
open-junius Jun 19, 2026
1f536d7
cargo fmt
open-junius Jun 19, 2026
fdf06f5
commit Cargo.lock
open-junius Jun 19, 2026
e1541f0
fix the conflict
open-junius Jun 19, 2026
7494ba6
take the current cleanup network into length of queue
open-junius Jun 19, 2026
44c418b
auto-update benchmark weights
github-actions[bot] Jun 19, 2026
916158c
add freeze macro
open-junius Jun 19, 2026
7695b2f
auto-update benchmark weights
github-actions[bot] Jun 19, 2026
4855bf3
upgrade version and fix build
open-junius Jun 22, 2026
07ffd42
remove duplicate sudo_set_subnet_owner_hotkey
JohnReedV Jun 22, 2026
2c8a3fd
bump spec
JohnReedV Jun 22, 2026
f38c0db
deprecate `BlockEmission` & create rpc
JohnReedV Jun 22, 2026
23039e0
update deprecation note
JohnReedV Jun 22, 2026
3e606f0
chore: auditor auto-fix
Jun 22, 2026
7994692
auto-update benchmark weights
github-actions[bot] Jun 22, 2026
b37a197
Merge branch 'devnet-ready' into block-emission-rpc
JohnReedV Jun 23, 2026
bb71e41
Fix crowdloan reentrancy bug
lorismoulin Jun 23, 2026
977d534
Update weights.rs
JohnReedV Jun 23, 2026
3ef6894
Merge branch 'devnet-ready' into block-emission-rpc
JohnReedV Jun 23, 2026
7d2c726
Merge branch 'devnet-ready' into block-emission-rpc
JohnReedV Jun 23, 2026
096a405
remove sudo_set_subnet_owner_hotkey everywhere
JohnReedV Jun 23, 2026
bff5760
Update weights.rs
JohnReedV Jun 23, 2026
612d546
Merge branch 'devnet-ready' into fix-crowdloan-reentrancy
lorismoulin Jun 23, 2026
ab38313
Merge branch 'devnet-ready' into fix-crowdloan-reentrancy
lorismoulin Jun 23, 2026
7c45c97
Trigger CI
lorismoulin Jun 24, 2026
d141ec2
Check CrowdloanCurrentId in finalize
lorismoulin Jun 24, 2026
8a4bad0
auto-update benchmark weights
github-actions[bot] Jun 24, 2026
fb5a4cd
Merge branch 'devnet-ready' into block-emission-rpc
JohnReedV Jun 24, 2026
0cee4d1
auto-update benchmark weights
github-actions[bot] Jun 24, 2026
069029f
bump spec
JohnReedV Jun 24, 2026
2303adc
Merge branch 'devnet-ready' into remove-duplicate-set-sn-owner-key
JohnReedV Jun 24, 2026
eb25e8f
Extract proxy related types
lorismoulin Jun 24, 2026
59b467a
Rework define_proxy_filters into call_filter_group macro
lorismoulin Jun 24, 2026
fd5e882
Fix compilation error
lorismoulin Jun 24, 2026
00e256b
fix conflict
open-junius Jun 25, 2026
3eedbd5
fix unit test
open-junius Jun 25, 2026
75b7b79
fix unit test
open-junius Jun 25, 2026
9efcbe7
add 3 more Ink interface
open-junius Jun 25, 2026
d74b987
auto-update benchmark weights
github-actions[bot] Jun 25, 2026
6eb4031
update test case
open-junius Jun 25, 2026
51d5e04
fix unit tests
open-junius Jun 25, 2026
4bf9055
format ts code
open-junius Jun 25, 2026
2c73b8f
chore: auditor auto-fix
Jun 25, 2026
f2c7bea
format ts code
open-junius Jun 25, 2026
aeeefa5
format code
open-junius Jun 25, 2026
1a5da03
Merge pull request #2778 from opentensor/block-emission-rpc
JohnReedV Jun 25, 2026
fe25a01
Merge pull request #2777 from opentensor/remove-duplicate-set-sn-owne…
JohnReedV Jun 25, 2026
265a501
Add initial call groups
lorismoulin Jun 25, 2026
d4a6da2
fix bugs
open-junius Jun 25, 2026
5751675
cargo clippy
open-junius Jun 25, 2026
d370972
fix conflict
open-junius Jun 26, 2026
424efa4
fix several issue in the comments
open-junius Jun 26, 2026
539200b
try without patch
open-junius Jun 26, 2026
4ec382c
Revert "try without patch"
open-junius Jun 26, 2026
ffe705c
make the test stable
open-junius Jun 26, 2026
d1ae758
format code
open-junius Jun 26, 2026
aecf5a1
Merge branch 'devnet-ready' into fix-crowdloan-reentrancy
lorismoulin Jun 26, 2026
2c82c55
Rework call groups + tests
lorismoulin Jun 26, 2026
171b5e5
Rework call groups + more tests
lorismoulin Jun 26, 2026
2841b5e
Merge branch 'devnet-ready' into proxy-deny-by-default
lorismoulin Jun 26, 2026
e9050d4
Fix common Cargo.toml
lorismoulin Jun 26, 2026
77e6bfc
Fix removed extrinsic
lorismoulin Jun 26, 2026
1490758
bump version
open-junius Jun 29, 2026
5cd2a57
Fix rust
lorismoulin Jun 26, 2026
6d13cf3
Merge branch 'devnet-ready' into fix-crowdloan-reentrancy
lorismoulin Jun 29, 2026
724bb84
Bump spec version to 424
lorismoulin Jun 29, 2026
a63880d
use StartCallNotReady
JohnReedV Jun 29, 2026
bf519d0
bump spec
JohnReedV Jun 29, 2026
559e62c
Merge branch 'devnet-ready' into chore/clean-rate-limits
Jun 29, 2026
f02efd6
clippy fix after merge conflict
Jun 29, 2026
e7f1bfd
spec version bump
Jun 29, 2026
cb26860
Merge branch 'main' into hotfixes-29-06-2026
lorismoulin Jun 29, 2026
a36fc33
Added set_reject_locked_alpha to SubtensorCommonCalls
lorismoulin Jun 30, 2026
992cfc6
Bump spec version to 424
lorismoulin Jun 30, 2026
1cb69bd
Trigger CI
lorismoulin Jun 30, 2026
1c305d6
Remove registry pallet cleanup migration
lorismoulin Jun 30, 2026
a5202f6
Bump spec version to 424
lorismoulin Jun 30, 2026
f6c858a
Use local try-runtime action
lorismoulin Jun 30, 2026
612e09b
auto-update benchmark weights
github-actions[bot] Jun 30, 2026
08c1a21
isSubnetDissolving interface
open-junius Jun 30, 2026
7bdc3c0
fixed tests
Jun 30, 2026
1d5ccec
Merge pull request #2786 from opentensor/fix-crowdloan-reentrancy
lorismoulin Jun 30, 2026
6c3c519
Merge pull request #2815 from opentensor/remove-registry-migration
lorismoulin Jun 30, 2026
0caa50f
Merge pull request #2816 from opentensor/fix-ci-29-06-2026
lorismoulin Jun 30, 2026
24f1d95
Merge branch 'devnet-ready' into proxy-deny-by-default
lorismoulin Jun 30, 2026
e5b15ca
Fix import
lorismoulin Jun 30, 2026
d9bfd08
Add missing faucet call
lorismoulin Jun 30, 2026
531e042
Make is_superset explicit allowlist
lorismoulin Jun 30, 2026
22842e4
Merge branch 'devnet-ready' into hotfixes-29-06-2026
lorismoulin Jun 30, 2026
2519652
Merge pull request #2814 from opentensor/hotfixes-29-06-2026
sam0x17 Jun 30, 2026
5a06a94
fix the conflict
open-junius Jul 1, 2026
c4b8e77
fix unit test
open-junius Jul 1, 2026
12d04c0
Merge pull request #2727 from opentensor/chore/clean-rate-limits
open-junius Jul 1, 2026
c7fad8d
fix unit test
open-junius Jul 1, 2026
6b7222a
Merge pull request #2797 from opentensor/add-tests-for-new-query
open-junius Jul 1, 2026
6a4206f
Merge pull request #2802 from opentensor/proxy-deny-by-default
lorismoulin Jul 1, 2026
a259fed
add finalize after contract deploy
open-junius Jul 2, 2026
5f2c452
add new case
open-junius Jul 3, 2026
e8ed66e
fix the issue of same identifier for same coldkey
open-junius Jul 3, 2026
0a6ebe6
cargo clippy
open-junius Jul 3, 2026
b75479d
commit Cargo.lock
open-junius Jul 3, 2026
6dc423b
commit Cargo.lock
open-junius Jul 3, 2026
5b74a6d
fix unit test
open-junius Jul 3, 2026
4dd460c
add block run
open-junius Jul 3, 2026
1bb29ac
Merge branch 'devnet-ready' into benchmark-dissolve-network
open-junius Jul 6, 2026
3200a6f
remove credit_subnet_account_shortfall
open-junius Jul 6, 2026
d10a8db
format code
open-junius Jul 6, 2026
19b8435
auto-update benchmark weights
github-actions[bot] Jul 6, 2026
e932dd4
Merge branch 'devnet-ready' into coldkey-pays-tx-fees-if-hotkey-origin
lorismoulin Jul 6, 2026
177ffc7
Merge pull request #2820 from RaoFoundation/avoid-nonce-reuse-error
UnArbosThree Jul 6, 2026
57b8bc3
Added reverse index for AssociatedEvmAddress
lorismoulin Jul 5, 2026
5c6de1f
upgrade cid package
open-junius Jul 7, 2026
6f8da13
Some refactoring
lorismoulin Jul 7, 2026
4ae8304
Merge branch 'devnet-ready' into coldkey-pays-tx-fees-if-hotkey-origin
lorismoulin Jul 7, 2026
bb676ae
Fix AI review
lorismoulin Jul 7, 2026
e3a92aa
Drop tip for hotkey based origin
lorismoulin Jul 7, 2026
f72d089
cargo fmt
lorismoulin Jul 7, 2026
8f0e7d4
Fix tests
lorismoulin Jul 7, 2026
e14e463
Fix AI review
lorismoulin Jul 7, 2026
571848b
Fix AI review 2 + remove limit + update comment
lorismoulin Jul 7, 2026
e072065
Merge pull request #2811 from RaoFoundation/fix-start-call-error
UnArbosSix Jul 7, 2026
4cb0523
chore: update repo URLs and crate metadata for RaoFoundation org move
Jul 7, 2026
45999f7
ci: point workflows and review tooling at RaoFoundation repos
Jul 7, 2026
d091d3a
ci: lowercase GHCR image names in docker publish workflows
Jul 7, 2026
621583e
docker: move image references to the ghcr.io/raofoundation namespace
Jul 7, 2026
7a8e436
deps: update frontier and bls git dependencies to RaoFoundation
Jul 7, 2026
22dd037
scripts: recognize RaoFoundation branch names in release notes
Jul 7, 2026
0c3d92d
Merge main into org-transfer to backport pending changes to devnet-ready
Jul 7, 2026
f0fa8ba
bump spec to 426
Jul 7, 2026
7dfd2a4
ci: fix invalid YAML in check-node-compat workflow
Jul 7, 2026
d084d43
Merge pull request #2834 from RaoFoundation/org-transfer
UnArbosThree Jul 7, 2026
f039a34
fix conflict
open-junius Jul 8, 2026
54e6d49
fix conflict
open-junius Jul 8, 2026
4f3d5ff
Merge pull request #2570 from RaoFoundation/coldkey-pays-tx-fees-if-h…
lorismoulin Jul 8, 2026
8ab7f9c
Merge pull request #2830 from RaoFoundation/fix-uid-lookup
lorismoulin Jul 8, 2026
820882a
fix conflict
open-junius Jul 8, 2026
45dbee4
clean up AssociatedUidsByEvmAddress
open-junius Jul 8, 2026
53eb334
update test case to check AssociatedUidsByEvmAddress cleanup
open-junius Jul 8, 2026
737e207
revert upgraded package
open-junius Jul 8, 2026
0a17c85
Consolidate Bittensor monorepo: SDK, py-sp-core, website, docs, clone…
unarbos Jul 8, 2026
c192c06
Merge pull request #2412 from RaoFoundation/benchmark-dissolve-network
open-junius Jul 8, 2026
498e7a5
Fix website monorepo cleanup regressions (#2840)
UnArbosFive Jul 9, 2026
3c76808
Harden CI, extension bridge auth, and release-train follow-ups.
unarbos Jul 9, 2026
d23b6b4
Fix CI gates: restore mainline rustfmt config, clippy warnings, docs …
unarbos Jul 9, 2026
bc7d239
ci: retrigger after Actions policy fix
unarbos Jul 9, 2026
e1d7b1d
Migrate clone js-tests to TypeScript, restructure EVM docs, add signe…
unarbos Jul 9, 2026
9aa4743
Fix Dependabot alerts: bump vulnerable deps across Cargo, pnpm, npm, …
unarbos Jul 9, 2026
d3a56f9
Pin CI actions and installers by SHA/version, harden deploy WASM veri…
unarbos Jul 9, 2026
a15449e
Bump vulnerable transitive deps flagged by Dependabot: bytes, time, k…
unarbos Jul 9, 2026
877a1ca
Fix remaining CI failures: audit ignores for fork-inherited advisorie…
unarbos Jul 9, 2026
301f4c1
Merge devnet-ready into mono-bittensor: dissolve-network benchmarks, …
unarbos Jul 9, 2026
ad2e8d5
Fix SDK e2e matrix: pass -m e2e so the runner overrides the default '…
unarbos Jul 9, 2026
de52967
Add 'bittensor-drand/' from commit 'd7baf9765f39d6c9c876777efe14a4bd1…
unarbos Jul 9, 2026
a380049
ai-review prefetch: reconstruct oversized diffs from the local checko…
unarbos Jul 9, 2026
70709e5
auto-update benchmark weights (pallet_subtensor, pallet_limit_orders,…
unarbos Jul 9, 2026
96c1803
Surface swallowed clone-upgrade errors and fix SDK e2e marker deselec…
unarbos Jul 9, 2026
2781b71
auto-update benchmark weights
github-actions[bot] Jul 9, 2026
7457448
fix e2es
UnArbosSix Jul 10, 2026
7e0d660
ai-review: update the branch-strategy context for the release-train f…
unarbos Jul 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .agents/skills/auditor/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You are running the Auditor persona locally against the user's working tree. The

Same detection as the Skeptic skill:
1. PR base via `gh pr view --json baseRefName` if a PR exists.
2. Default to `devnet-ready`.
2. Default to `devnet`.
3. Override via skill argument: `/auditor main`.

Compute the diff:
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/skeptic/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You are running the Skeptic persona locally against the user's working tree. The

Detect the base branch in this order:
1. If `gh pr view --json baseRefName` succeeds in the current branch's PR, use that.
2. Else, default to `devnet-ready` (the policy base for new PRs).
2. Else, default to `devnet` (the policy base for new PRs).
3. Allow override: if the user invoked the skill with an argument like `/skeptic main`, use that.

Compute the diff:
Expand Down
1 change: 1 addition & 0 deletions .claude/skills
66 changes: 0 additions & 66 deletions .claude/skills/auditor/SKILL.md

This file was deleted.

59 changes: 0 additions & 59 deletions .claude/skills/skeptic/SKILL.md

This file was deleted.

25 changes: 0 additions & 25 deletions .devcontainer/devcontainer.json

This file was deleted.

8 changes: 8 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
self-hosted-runner:
# Fireactions-provisioned runner pools plus the dedicated benchmarking box.
labels:
- fireactions-light
- fireactions-heavy
- fireactions-tryruntime
- fireactions-tryruntime-finney
- Benchmarking
39 changes: 39 additions & 0 deletions .github/actions/rust-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Rust setup"
description: >-
Common prologue for Rust jobs: system dependencies, stable toolchain with
optional components, and the shared Swatinem cache.

inputs:
cache-key:
description: "Swatinem/rust-cache key for this job"
required: true
components:
description: "Comma-separated toolchain components (e.g. clippy,rustfmt)"
default: ""
extra-packages:
description: "Extra apt packages beyond the standard build set"
default: ""

runs:
using: "composite"
steps:
- name: Install system dependencies
shell: bash
run: |
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get install -y --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
build-essential clang curl git make libssl-dev llvm libudev-dev protobuf-compiler pkg-config \
python3 python3-dev \
${{ inputs.extra-packages }}

- name: Install Rust (stable)
uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable
with:
components: ${{ inputs.components }}

- name: Shared Rust cache
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
with:
key: ${{ inputs.cache-key }}
cache-on-failure: true
99 changes: 99 additions & 0 deletions .github/actions/try-runtime/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: "Subtensor Try Runtime"
description: "Check Subtensor runtime migrations using try-runtime-cli"
author: "Rao Foundation"
branding:
icon: "shield"
color: "green"

inputs:
runtime-package:
description: "The runtime package name"
required: true
node-uri:
description: "URI of a node to scrape state"
required: true
checks:
description: "Types of checks to run."
default: "all"
blocktime:
description: "Block time in milliseconds to use for try-runtime checks."
default: "12000"
extra-args:
description: "Extra args to pass to the on-runtime-upgrade subcommand."
default: ""
cache-on-failure:
description: "Whether to save the Rust cache even if the job fails"
default: "false"

runs:
using: "composite"
steps:
- name: Download try-runtime-cli v0.10.1
run: |
TRY_RUNTIME_BIN="$RUNNER_TEMP/try-runtime"
curl --fail --silent --show-error --location \
"https://github.com/paritytech/try-runtime-cli/releases/download/v0.10.1/try-runtime-x86_64-unknown-linux-musl" \
--output "$TRY_RUNTIME_BIN"
chmod +x "$TRY_RUNTIME_BIN"
echo "TRY_RUNTIME_BIN=$TRY_RUNTIME_BIN" >> "$GITHUB_ENV"
shell: bash

- name: Install Protoc
uses: arduino/setup-protoc@v1.3.0
with:
version: "3.6.1"
repo-token: ${{ github.token }}

- name: Add wasm32-unknown-unknown target
run: rustup target add wasm32-unknown-unknown
shell: bash

- name: Add rust-src component
run: rustup component add rust-src
shell: bash

- name: Fetch cache
uses: Swatinem/rust-cache@v2.7.0
with:
shared-key: try-runtime
cache-on-failure: ${{ inputs.cache-on-failure }}

- name: Build ${{ inputs.runtime-package }}
run: cargo build --profile production -p "$RUNTIME_PACKAGE" --features try-runtime -q --locked
shell: bash
env:
RUNTIME_PACKAGE: ${{ inputs.runtime-package }}

- name: Check migrations
run: |
RUNTIME_BLOB_NAME="${RUNTIME_PACKAGE//-/_}.compact.compressed.wasm"
RUNTIME_BLOB_PATH="./target/production/wbuild/$RUNTIME_PACKAGE/$RUNTIME_BLOB_NAME"
export RUST_LOG=remote-ext=debug,runtime=debug

command=(
"$TRY_RUNTIME_BIN"
--runtime "$RUNTIME_BLOB_PATH"
on-runtime-upgrade
"--checks=$CHECKS"
--blocktime
"$BLOCKTIME"
)

if [[ -n "$EXTRA_ARGS" ]]; then
read -r -a extra_args <<< "$EXTRA_ARGS"
command+=("${extra_args[@]}")
fi

command+=(live --uri "$NODE_URI")

echo "Running command:"
printf '%q ' "${command[@]}"
printf '\n'
"${command[@]}"
shell: bash
env:
RUNTIME_PACKAGE: ${{ inputs.runtime-package }}
NODE_URI: ${{ inputs.node-uri }}
CHECKS: ${{ inputs.checks }}
BLOCKTIME: ${{ inputs.blocktime }}
EXTRA_ARGS: ${{ inputs.extra-args }}
10 changes: 5 additions & 5 deletions .github/ai-review/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ workflow will automatically use its token instead.

### Setup

1. Create a GitHub App under the `opentensor` org:
1. Create a GitHub App under the `RaoFoundation` org:
- Settings → Developer settings → GitHub Apps → New GitHub App.
- Webhook: not needed; disable.
- Repository permissions:
Expand All @@ -39,7 +39,7 @@ workflow will automatically use its token instead.
- **Metadata**: Read
- User permissions: none.
- "Where can this GitHub App be installed?": Only on this account.
2. Install the App on the `opentensor/subtensor` repo (only).
2. Install the App on the `RaoFoundation/subtensor` repo (only).
3. From the App settings page, generate a private key (`.pem` file).
4. In repo Settings → Secrets and variables → Actions:
- Variables tab: add `AI_REVIEW_APP_ID` = the App's numeric ID.
Expand Down Expand Up @@ -98,12 +98,12 @@ the PR number. `workflow_dispatch` runs in base context with secrets
available, performs the real review, and the required checks turn green.

```bash
gh workflow run ai-review.yml --repo opentensor/subtensor -f pr_number=<N>
gh workflow run ai-review.yml --repo RaoFoundation/subtensor -f pr_number=<N>
```

## Required-checks setup

After the first successful run, add these to branch protection on `devnet-ready`
After the first successful run, add these to branch protection on `devnet`
(and other protected branches) under Settings → Branches → Branch protection rules:

- `ai-review / skeptic`
Expand All @@ -114,7 +114,7 @@ After the first successful run, add these to branch protection on `devnet-ready`
Manual trigger:

```bash
gh workflow run ai-review-index-gittensor.yml --repo opentensor/subtensor
gh workflow run ai-review-index-gittensor.yml --repo RaoFoundation/subtensor
```

Daily cron is already configured (06:17 UTC). The indexer opens a PR with any
Expand Down
8 changes: 4 additions & 4 deletions .github/ai-review/auditor.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Look up the PR author's gittensor association:

1. Read `.github/ai-review/known-gittensor-accounts.json` (auto-maintained from on-chain bounty data).
2. Read `.github/ai-review/gittensor-accounts.txt` (nucleus-curated supplement).
3. If neither matches, apply the heuristic: ≥70% of the author's recent merged PRs are to gittensor-whitelisted repos (subtensor / opentensor / latent-to / etc.) AND average PR size is small. If so, classify as `LIKELY`.
3. If neither matches, apply the heuristic: ≥70% of the author's recent merged PRs are to gittensor-whitelisted repos (subtensor / RaoFoundation / opentensor / latent-to / etc.) AND average PR size is small. If so, classify as `LIKELY`.

Tier the author:
- **KNOWN** (on-chain or curated): high confidence gittensor miner.
Expand Down Expand Up @@ -99,9 +99,9 @@ Apply `.github/copilot-instructions.md` in full. Particular emphasis:

| Base branch | Network endpoint | CI workflow |
| --- | --- | --- |
| `devnet` / `devnet-ready` | `wss://dev.chain.opentensor.ai:443` | check-devnet |
| `testnet` / `testnet-ready` | `wss://test.finney.opentensor.ai:443` | check-testnet |
| `finney` / `main` | `wss://entrypoint-finney.opentensor.ai:443` | check-finney |
| `devnet` | `wss://dev.chain.opentensor.ai:443` | check-devnet |
| `testnet` | `wss://test.finney.opentensor.ai:443` | check-testnet |
| `mainnet` | `wss://entrypoint-finney.opentensor.ai:443` | check-mainnet |
| anything else | _(no spec-version check)_ | — |

Also: a bump is NOT required if the PR carries the `no-spec-version-bump`
Expand Down
Loading
Loading