In short
- Goal. Know which file holds what, validate it and start from an example.
- Time. 10 minutes
The files
A run is configured by server_config.json and client_config.json in the experiment folder, checked against schemas/config/server_config.schema.json and client_config.schema.json. Unknown keys and out-of-range values stop the start-up with a message that names the key.
| File | Holds |
|---|---|
server_config.json |
Ray connection, seed, minimum clients, timeout, database, Redis, annotations, stress, human gateway, logs |
client_config.json |
days and slots, seed, mode, models, population, activity, actions, agents, opinions, recommenders, news, communities |
python -m YForum.cli.validate --config example/rule_based
Anything not written takes its default. Experiments created from YSocial get both files generated from the forms of the admin panel.
Examples
example/rule_based is a complete rule-based run (100 agents, two days) and example/empty_cycle a clock-only run with no agents. A minimal client file:
{
"client_name": "client_1", "mode": "rule_based", "num_days": 2, "seed": 1,
"simulation": { "starting_agents": 100,
"actions_likelihood": { "post": 0.2, "comment": 0.5, "read": 0.2, "search": 0.1 } },
"agents": { "llm_agents": [null], "probability_of_daily_follow": 0.0 }
}
Coming from YServerReddit and YClientReddit
python tools/translate_config.py --exp-config exp_config.json --config config.json --out my_experiment writes both new files; every key is mapped or dropped with a reason, and an unknown key stops it. Two defaults differ on purpose: reset_db is a boolean that defaults to false (a run does not erase a database by accident), and thread_browse_mode defaults to llm. Old integer-id databases convert with python -m YForum.utils.legacy_convert reference.db yforum.db.