Skip to content

V0.5.8#2

Open
readyName wants to merge 88 commits intomainfrom
v0.5.8
Open

V0.5.8#2
readyName wants to merge 88 commits intomainfrom
v0.5.8

Conversation

@readyName
Copy link
Copy Markdown
Owner

@readyName readyName commented Aug 3, 2025

Note

Introduce a code-generation swarm with Ollama and PRG integration, enforce device checks, add modal endpoints and UI updates, wire up Docker/Ollama, and overhaul configs/scripts to run the new workflow.

  • Core/Experiments:
    • Add code_gen_exp (config, runner, trainer, data, rewards, proposer/service, coordinator, utils) to run a code-generation RL swarm via Ollama and Hivemind; integrate PRG game flow.
    • Enforce device status checks (device_check.py) and wrap blockchain API calls.
  • Coordinator/Contracts:
    • New modal-based coordinators (rgym_exp/src/coordinator.py, code_gen_exp/src/coordinator.py) and add ABI JSONs.
  • Configs:
    • New code-gen-swarm.yaml; update rg-swarm.yaml (dtype, endpoints, bootnodes, PRG config, coordinator ABI path).
  • Modal Login/UI:
    • Add API endpoints: bet-token-balance, guess-answer, claim-reward; switch env var to SWARM_CONTRACT_ADDRESS; update Tailwind/theme/fonts and login page styling.
  • Docker/Runtime:
    • Add ollama service to docker-compose.yaml; install experiment requirements in containerfile.
  • Scripts/Automation:
    • Add operational scripts (auto_run.sh, startAll.sh, nexus.sh, ritual.sh, quickq_run.sh, clean_spotlight.sh, create.sh, upload_devices.sh).
    • Overhaul gensyn.sh and run_rl_swarm.sh to drive code_gen_exp, configure Ollama, defaults, and HF behavior.
  • Docs:
    • README copyedits, add AI Prediction Market section and troubleshooting/FAQ entries.

Written by Cursor Bugbot for commit 2ad0506. This will update automatically on new commits. Configure here.

jcd496 added 6 commits July 14, 2025 13:52
* use new bootnode IP addrs

* filter potential transplants on num_generations and randomly select

GitOrigin-RevId: d372f0aef6b3b771b8a8628d3a6e26baffbba47f
GitOrigin-RevId: 92dbbe378bfaa4063c84c3d153417b71fa309b12
GitOrigin-RevId: 764c59d8b915ef2c14173cecec8d4889cda11935
* submit based on time, not rounds

* submit at end of round if missed opportunity during rewards calc

* add flag to stop duplicate submission

GitOrigin-RevId: 075742d143e7be32d04a0ca682e2d11c737560be
GitOrigin-RevId: 75149ad8fa72a29c1254ad10a0b74e2700f502dd
GitOrigin-RevId: fdb2024ecd7d3cd0f6d09d40952830903a0549cf
cursor[bot]

This comment was marked as outdated.

@cursor
Copy link
Copy Markdown

cursor bot commented Aug 17, 2025

🚨 Bugbot Trial Expired

Your Bugbot trial has expired. Please purchase a license in the Cursor dashboard to continue using Bugbot.

1 similar comment
@cursor
Copy link
Copy Markdown

cursor bot commented Aug 17, 2025

🚨 Bugbot Trial Expired

Your Bugbot trial has expired. Please purchase a license in the Cursor dashboard to continue using Bugbot.

@cursor
Copy link
Copy Markdown

cursor bot commented Aug 20, 2025

Bugbot found 1 bug

To see it, activate your membership in the Cursor dashboard.

jcd496 and others added 20 commits August 27, 2025 11:00
GitOrigin-RevId: bea9ea36f9a7c30b8a12f56b252facaa75476379
* PRG Game Coordinator and Swarm Coordinator Refactor

* rm trl dependency

* update paths in config and tag

* Add PRG Coordinator and refactor

* add claim_reward to prg coordinator

* type script for submit-guess and claim-reward

* make contract optional in userOperationHandler

* contract address gets passed and set by run_rl_swarm.sh

* Contract routing burden to endpoints

* .env smart_contract -> swarm_contract

* Swarm Node changes to submit guess and claim rewards

* Making PRG logic robust, adding token balance, submit guess, claim reward call

* Addressing code review comments

---------

Co-authored-by: Shikhar Rastogi <shikharrastogi@Shikhars-MacBook-Pro.local>

* integration compatibility

move prg state trackers into init block
modify dict keys

* Adding new contract function and renames

Co-authored-by: Shikhar Rastogi <shikharrastogi@Shikhars-MacBook-Pro.local>

* Changes to bet token and guess answer fix

Co-authored-by: Shikhar Rastogi <shikharrastogi@Shikhars-MacBook-Pro.local>

---------

Co-authored-by: Johnny <43159502+jcd496@users.noreply.github.com>
Co-authored-by: Shikhar Rastogi <shikharrastogi@Shikhars-MacBook-Pro.local>
GitOrigin-RevId: 7ac626230b7b3251822030f3616505b78764b16c
GitOrigin-RevId: 2c87f9ac128361e520d05dcc8e93618319c43589
handle case that we miss last round and next game started

make sure we played a round and game before check

pr feedback

GitOrigin-RevId: 594e55387094a8a7acafb23a0d85b884e506a78c
throw error if bet or claim did not succeed, python will catch and try again.  Also logging

don't auto grep HF_TOKEN

new contract addr

rm test code

new judge endpoint

prg history file and logging choice rather than idx

GitOrigin-RevId: 888acb99be0c0a2b6c26adec220137cd337c8d66
GitOrigin-RevId: 88aca938c7aa41d17d8bd58dbd40543ed67d5650
Co-authored-by: tforbus <tristin@gensyn.ai>
GitOrigin-RevId: d5c597de461808b125644b2ff77dae81a5c1d1e5
GitOrigin-RevId: a2275907e07597fcf31c5bde4d839f1730bb853d
…it-winners

GitOrigin-RevId: 0e031d15d4a0b36010fb9bae6de90832a96fdf41
Co-authored-by: tforbus <tristin@gensyn.ai>
GitOrigin-RevId: 1168e6a8527c7d3ce31e6469c2daf07288c1a57f
bonus: fix logging
GitOrigin-RevId: d1c540ad461a69f1066add75a244740275b0235c
* Add PRG info to README

* Added PRG FAQ section to Readme

* Updated language

GitOrigin-RevId: f8e9d76ed6046c9fb2a196a7dc828b0881e73356
GitOrigin-RevId: 89330d231e74f524e5b0ab580e7fe436039300b1
* Fix blog link

* README typos and nits

* blog link

GitOrigin-RevId: 75bc468a07dbf3d74bdd38ae0b96dc7ea6fbf095
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread quickq_run.sh
sleep 5
osascript -e "tell application \"$APP_NAME\" to activate"
sleep 1
adjust_window
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Function Definition Order Matters

The function adjust_window is called before it's defined. In bash, functions must be defined before they're called. The function definition appears later at line 203, causing a "command not found" error when this code executes.

Fix in Cursor Fix in Web

Comment thread run_rl_swarm.sh
err_data = http_err.response.json()
err_name = err_data["error"]
if err_name != "PeerIdAlreadyRegistered":
get_logger().info(f"Registering peer failed with: f{err_name}")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: F-string: Literal Text, Not Variable Value

The f-string has an extra f character inside it: f"Registering peer failed with: f{err_name}". This will print the literal text "f{err_name}" instead of interpolating the variable value. Should be f"Registering peer failed with: {err_name}".

Fix in Cursor Fix in Web

Comment thread rgym_exp/src/coordinator.py
Comment thread modal-login/.env
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread auto_run.sh

# 静默检测模式:仅检查状态,不做上传,也不输出日志
CHECK_ONLY=true ./upload_devices.sh >/dev/null 2>&1
local check_rc=$?
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Invalid local keyword used inside subshell

The local keyword on line 281 (local check_rc=$?) is used inside a subshell (started with ( on line 267), but local is only valid inside shell functions, not subshells. This will cause a syntax error when the background subshell executes. The local keyword should be removed, using just check_rc=$? instead.

Fix in Cursor Fix in Web

airdrop_th added 2 commits December 13, 2025 12:11
Comment thread clean_spotlight.sh
echo "最终索引状态:"
mdutil -s /

echo "Spotlight 索引清理完成!" No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: macOS Spotlight utility accidentally committed to repository

This appears to be a personal macOS system utility script that clears and rebuilds Spotlight indexes. It performs destructive operations like sudo rm -rf /System/Volumes/Data/.Spotlight-V100 and seems unrelated to the RL-Swarm project. This looks like it was accidentally committed and could confuse users or pose a risk if run unintentionally on macOS systems.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants