Skip to content

Commit 3858895

Browse files
committed
Merge branch 'devnet-ready' into subnet-sale-offer
2 parents bf1b3c8 + 8ab7f9c commit 3858895

69 files changed

Lines changed: 1481 additions & 667 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ai-review/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ workflow will automatically use its token instead.
2929

3030
### Setup
3131

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

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

104104
## Required-checks setup
@@ -114,7 +114,7 @@ After the first successful run, add these to branch protection on `devnet-ready`
114114
Manual trigger:
115115

116116
```bash
117-
gh workflow run ai-review-index-gittensor.yml --repo opentensor/subtensor
117+
gh workflow run ai-review-index-gittensor.yml --repo RaoFoundation/subtensor
118118
```
119119

120120
Daily cron is already configured (06:17 UTC). The indexer opens a PR with any

.github/ai-review/auditor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Look up the PR author's gittensor association:
7070

7171
1. Read `.github/ai-review/known-gittensor-accounts.json` (auto-maintained from on-chain bounty data).
7272
2. Read `.github/ai-review/gittensor-accounts.txt` (nucleus-curated supplement).
73-
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`.
73+
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`.
7474

7575
Tier the author:
7676
- **KNOWN** (on-chain or curated): high confidence gittensor miner.

.github/ai-review/common.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Subtensor AI Review — Shared Context
22

3-
You are reviewing a pull request to **opentensor/subtensor**, the Substrate-based runtime for the Bittensor blockchain (~$4B market cap). Lives and livelihoods depend on the security and correctness of this code. Be thorough, precise, and uncompromising on safety.
3+
You are reviewing a pull request to **RaoFoundation/subtensor**, the Substrate-based runtime for the Bittensor blockchain (~$4B market cap). Lives and livelihoods depend on the security and correctness of this code. Be thorough, precise, and uncompromising on safety.
44

55
## Repository topology
66

.github/ai-review/post_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
2626
Usage:
2727
GH_TOKEN=... python3 post_review.py \
28-
--persona skeptic --pr 2668 --repo opentensor/subtensor \
28+
--persona skeptic --pr 2668 --repo RaoFoundation/subtensor \
2929
--commit-sha <sha> --input-file skeptic-output.json
3030
"""
3131

.github/ai-review/prefetch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
set -euo pipefail
88

99
: "${PR_NUMBER:?PR_NUMBER required}"
10-
: "${REPO:?REPO required (e.g. opentensor/subtensor)}"
10+
: "${REPO:?REPO required (e.g. RaoFoundation/subtensor)}"
1111
: "${GH_TOKEN:?GH_TOKEN required (used here only — NOT passed to Codex)}"
1212
OUTPUT_DIR="${OUTPUT_DIR:-/tmp/ai-review-context}"
1313

.github/ai-review/skeptic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ diff from a HIGH-risk contributor tips toward `[VULNERABLE]`.
5858
**Account-age + contribution-graph tiers** (apply before reading the diff):
5959

6060
- **VERY HIGH scrutiny**: account < 30 days old, OR < 10 lifetime contributions, OR < 3 public repos. Treat any non-trivial change as suspicious until proven otherwise. A `[SAFE]` verdict here requires the diff to be small, mechanical, and obviously correct.
61-
- **HIGH scrutiny**: account < 90 days old, OR < 50 lifetime contributions, OR no contribution history outside of subtensor / opentensor.
61+
- **HIGH scrutiny**: account < 90 days old, OR < 50 lifetime contributions, OR no contribution history outside of subtensor / RaoFoundation / opentensor (the org's former name).
6262
- **MEDIUM scrutiny**: account 90 days – 1 year old with modest contribution history, OR established account whose contribution pattern recently pivoted heavily toward subtensor / gittensor-whitelisted repos.
6363
- **BASELINE scrutiny**: account > 1 year old with substantive non-subtensor history, OR known nucleus member.
6464

@@ -73,7 +73,7 @@ diff from a HIGH-risk contributor tips toward `[VULNERABLE]`.
7373
**Patterns that lower risk**:
7474

7575
- Established contributor with a long history of substantive merged PRs to this repo.
76-
- "Nucleus" team member: `gh api repos/opentensor/subtensor/collaborators/$AUTHOR/permission``admin` or `write` permission.
76+
- "Nucleus" team member: `gh api repos/RaoFoundation/subtensor/collaborators/$AUTHOR/permission``admin` or `write` permission.
7777
- Substantive contribution history to unrelated reputable open-source projects.
7878

7979
## Step 2 — Diff analysis

.github/workflows/ai-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ jobs:
252252
output-schema-file: /tmp/ai-review-trusted/codex-output-schema.json
253253
prompt: |
254254
You are running as the **Skeptic** persona reviewing PR #${{ needs.decide.outputs.pr_number }}
255-
in the opentensor/subtensor repository.
255+
in the RaoFoundation/subtensor repository.
256256
257257
Branch: `${{ needs.decide.outputs.head_ref }}` -> `${{ needs.decide.outputs.base_ref }}`
258258
Author: `${{ needs.decide.outputs.author }}`
@@ -469,7 +469,7 @@ jobs:
469469
output-schema-file: /tmp/ai-review-trusted/codex-output-schema.json
470470
prompt: |
471471
You are running as the **Auditor** persona reviewing PR #${{ needs.decide.outputs.pr_number }}
472-
in the opentensor/subtensor repository.
472+
in the RaoFoundation/subtensor repository.
473473
474474
Branch: `${{ needs.decide.outputs.head_ref }}` -> `${{ needs.decide.outputs.base_ref }}`
475475
Author: `${{ needs.decide.outputs.author }}`

.github/workflows/check-bittensor-e2e-tests.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
env:
2424
CARGO_TERM_COLOR: always
2525
VERBOSE: ${{ github.event.inputs.verbose }}
26+
# Name the locally built localnet image under the RaoFoundation namespace
27+
# (lowercase — Docker requires it). The bittensor/btcli e2e harnesses read
28+
# LOCALNET_IMAGE_NAME from the environment, overriding their built-in default.
29+
LOCALNET_IMAGE_NAME: ghcr.io/raofoundation/subtensor-localnet:devnet-ready
2630

2731
jobs:
2832
check-label:
@@ -75,7 +79,7 @@ jobs:
7579
7680
- name: Research preparation
7781
working-directory: ${{ github.workspace }}
78-
run: git clone https://github.com/opentensor/btcli.git
82+
run: git clone https://github.com/RaoFoundation/btcli.git
7983

8084
- name: Checkout
8185
working-directory: ${{ github.workspace }}/btcli
@@ -135,7 +139,7 @@ jobs:
135139
136140
- name: Research preparation
137141
working-directory: ${{ github.workspace }}
138-
run: git clone https://github.com/opentensor/bittensor.git
142+
run: git clone https://github.com/RaoFoundation/bittensor.git
139143

140144
- name: Checkout
141145
working-directory: ${{ github.workspace }}/bittensor
@@ -340,7 +344,7 @@ jobs:
340344

341345
- name: Clone Bittensor CLI repo
342346
working-directory: ${{ github.workspace }}
343-
run: git clone https://github.com/opentensor/btcli.git
347+
run: git clone https://github.com/RaoFoundation/btcli.git
344348

345349
- name: Setup Bittensor-cli from cloned repo
346350
working-directory: ${{ github.workspace }}/btcli
@@ -361,7 +365,7 @@ jobs:
361365
run: docker load -i subtensor-localnet.tar
362366

363367
- name: Retag Docker Image
364-
run: docker tag localnet ghcr.io/opentensor/subtensor-localnet:devnet-ready
368+
run: docker tag localnet "$LOCALNET_IMAGE_NAME"
365369

366370
- name: Run with retry
367371
working-directory: ${{ github.workspace }}/btcli
@@ -421,7 +425,7 @@ jobs:
421425

422426
- name: Clone Bittensor SDK repo
423427
working-directory: ${{ github.workspace }}
424-
run: git clone https://github.com/opentensor/bittensor.git
428+
run: git clone https://github.com/RaoFoundation/bittensor.git
425429

426430
- name: Setup Bittensor SDK from cloned repo
427431
working-directory: ${{ github.workspace }}/bittensor
@@ -442,7 +446,7 @@ jobs:
442446
run: docker load -i subtensor-localnet.tar
443447

444448
- name: Retag Docker Image
445-
run: docker tag localnet ghcr.io/opentensor/subtensor-localnet:devnet-ready
449+
run: docker tag localnet "$LOCALNET_IMAGE_NAME"
446450

447451
- name: Run with retry
448452
working-directory: ${{ github.workspace }}/bittensor

.github/workflows/check-node-compat.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ jobs:
2222
strategy:
2323
matrix:
2424
version:
25-
- { name: old, ref: devnet-ready }
26-
- { name: new, ref: ${{ github.head_ref }} }
25+
- name: old
26+
ref: devnet-ready
27+
- name: new
28+
ref: ${{ github.head_ref }}
2729

2830
steps:
2931
- name: Install dependencies

.github/workflows/docker-localnet.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ jobs:
200200
username: ${{ github.actor }}
201201
password: ${{ secrets.GITHUB_TOKEN }}
202202

203+
- name: Determine image name
204+
# Docker requires lowercase image names; github.repository is RaoFoundation/subtensor
205+
run: echo "image=ghcr.io/${GITHUB_REPOSITORY,,}-localnet" >> $GITHUB_ENV
206+
203207
- name: Build and push Docker image
204208
uses: docker/build-push-action@v6
205209
with:
@@ -211,5 +215,5 @@ jobs:
211215
push: true
212216
platforms: linux/amd64,linux/arm64
213217
tags: |
214-
ghcr.io/${{ github.repository }}-localnet:${{ needs.setup.outputs.tag }}
215-
${{ needs.setup.outputs.latest_tag == 'true' && format('ghcr.io/{0}-localnet:latest', github.repository) || '' }}
218+
${{ env.image }}:${{ needs.setup.outputs.tag }}
219+
${{ needs.setup.outputs.latest_tag == 'true' && format('{0}:latest', env.image) || '' }}

0 commit comments

Comments
 (0)