Fix: persist and expose repository gatePack setting - #719
Conversation
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
gittensory · advisory review Reviewed 4 changed file(s) — two independent AI reviewers. Suggested action: 🛠️ Request changes. (reviewers split: request changes / merge) Address the suggestions below before merging. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Worth double-checking
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | ed602db | Commit Preview URL Branch Preview URL |
Jun 14 2026, 02:15 PM |
Motivation
gatePacksetting (valuesgittensor|oss-anti-slop) was used by gate logic but not fully wired into settings write paths, causing API-updated or existing DB rows to silently keep the defaultgittensorvalue.oss-anti-slopineffective for existing rows and allowed non-confirmed authors to avoid intended deterministic gate failures in some configurations.Description
gatePackto the internal repository settings request schema so API callers can provide the field (src/api/routes.ts).gatePackvalue from the internal settings endpoint toupsertRepositorySettings(src/api/routes.ts).gatePackin the upsert conflict-update set so existing repository settings rows can change packs (src/db/repositories.ts).test/unit/data-spine.test.ts,test/integration/api.test.ts).Testing
npx vitest run test/unit/data-spine.test.ts test/integration/api.test.ts --reporter dotand all tests passed.npm run typecheck(callstsc --noEmit) and succeeded.Codex Task