-
Notifications
You must be signed in to change notification settings - Fork 319
Migrate repo references from opentensor to RaoFoundation org #2822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devnet-ready
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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: | ||
|
|
@@ -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). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HIGH] Protected AI-review file changed This PR still modifies a protected |
||
| 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. | ||
|
|
@@ -98,7 +98,7 @@ 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 | ||
|
|
@@ -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 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Subtensor AI Review — Shared Context | ||
|
|
||
| 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. | ||
| 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. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HIGH] Trusted review prompt changed This changes the shared AI-review prompt text relative to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HIGH] Trusted review prompt changed This changes the trusted shared AI-review prompt under |
||
|
|
||
| ## Repository topology | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
| Usage: | ||
| GH_TOKEN=... python3 post_review.py \ | ||
| --persona skeptic --pr 2668 --repo opentensor/subtensor \ | ||
| --persona skeptic --pr 2668 --repo RaoFoundation/subtensor \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HIGH] Protected AI-review helper changed This PR modifies an AI-review helper script under
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HIGH] Protected AI-review helper changed This PR still modifies a protected AI-review helper script. Because the review-posting helper is part of the review system itself, the operating instructions require this |
||
| --commit-sha <sha> --input-file skeptic-output.json | ||
| """ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ | |
| set -euo pipefail | ||
|
|
||
| : "${PR_NUMBER:?PR_NUMBER required}" | ||
| : "${REPO:?REPO required (e.g. opentensor/subtensor)}" | ||
| : "${REPO:?REPO required (e.g. RaoFoundation/subtensor)}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HIGH] Protected AI-review prefetch script changed This PR modifies the AI-review prefetch script under
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HIGH] Protected AI-review prefetch script changed This PR still modifies the protected prefetch script used to gather review context. The operating instructions require any |
||
| : "${GH_TOKEN:?GH_TOKEN required (used here only — NOT passed to Codex)}" | ||
| OUTPUT_DIR="${OUTPUT_DIR:-/tmp/ai-review-context}" | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,7 +73,7 @@ diff from a HIGH-risk contributor tips toward `[VULNERABLE]`. | |
| **Patterns that lower risk**: | ||
|
|
||
| - Established contributor with a long history of substantive merged PRs to this repo. | ||
| - "Nucleus" team member: `gh api repos/opentensor/subtensor/collaborators/$AUTHOR/permission` — `admin` or `write` permission. | ||
| - "Nucleus" team member: `gh api repos/RaoFoundation/subtensor/collaborators/$AUTHOR/permission` — `admin` or `write` permission. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HIGH] Trusted Skeptic prompt changed This changes the Skeptic persona instructions relative to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HIGH] Trusted Skeptic prompt changed This changes the trusted Skeptic persona prompt under |
||
| - Substantive contribution history to unrelated reputable open-source projects. | ||
|
|
||
| ## Step 2 — Diff analysis | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[HIGH] Protected AI-review file changed
This PR modifies
.github/ai-review/*. Per the operating instructions for this review, any diff in the AI-review files against the trusted base copy must be flagged as HIGH or CRITICAL, even though this specific hunk is a repository-name migration.