-
-
Notifications
You must be signed in to change notification settings - Fork 82
Re-evaluate the local concurrency model for a shared-service context #4942
Copy link
Copy link
Open
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is neededExtra attention is neededroadmapOn the Wave-2 agent-layer roadmap board (project 9)On the Wave-2 agent-layer roadmap board (project 9)
Milestone
Description
Metadata
Metadata
Assignees
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is neededExtra attention is neededroadmapOn the Wave-2 agent-layer roadmap board (project 9)On the Wave-2 agent-layer roadmap board (project 9)
Projects
StatusShow more project fields
Todo
Problem: The miner's local-store concurrency guarantees were explicitly designed for two local processes sharing one file — that model doesn't automatically translate to many remote users against one shared hosted service.
Area: AMS / Cloud architecture (
src/selfhost/installation-concurrency-admission.ts,src/queue/map-with-concurrency.ts— the existing single-instance concurrency primitives to re-evaluate).Unblocked (2026-07-21): the dependency this issue was waiting on — migrating AMS's local-store layer to a shared datastore — is done (#7175, closed: AMS's local-store layer migrated from
node:sqliteto the sharedpg-adapter/SqliteDriverseam). This issue is no longer blocked.Proposal: Verify the now-real shared backend's own concurrency guarantees under actual concurrent load, and document them explicitly rather than assuming the old local-file assumptions still silently hold.
Deliverables:
pg-adapter/SqliteDriverbackend (what's guaranteed, what isn't) under real concurrent access from multiple tenant sessions.Resources
src/selfhost/installation-concurrency-admission.ts,src/queue/map-with-concurrency.ts(existing single-instance concurrency code, for contrast)Contributor-eligible. Verification/documentation work against an already-migrated, already-real backend — no undecided architecture question left to resolve, no infra credentials needed (test against the existing test-double Postgres/SQLite setup, not live infrastructure).