cogames-agents 0.0.0.10__tar.gz → 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. cogames_agents-0.0.1/PKG-INFO +10 -0
  2. cogames_agents-0.0.1/README.md +3 -0
  3. cogames_agents-0.0.1/pyproject.toml +17 -0
  4. cogames_agents-0.0.1/src/cogames_agents.egg-info/PKG-INFO +10 -0
  5. cogames_agents-0.0.1/src/cogames_agents.egg-info/SOURCES.txt +9 -0
  6. cogames_agents-0.0.0.10/.gitignore +0 -2
  7. cogames_agents-0.0.0.10/.nim-version +0 -1
  8. cogames_agents-0.0.0.10/.nimby-version +0 -1
  9. cogames_agents-0.0.0.10/MANIFEST.in +0 -9
  10. cogames_agents-0.0.0.10/PKG-INFO +0 -85
  11. cogames_agents-0.0.0.10/README.co-gas.md +0 -47
  12. cogames_agents-0.0.0.10/README.md +0 -63
  13. cogames_agents-0.0.0.10/docs/0018-tribal-village-temple-roles.md +0 -130
  14. cogames_agents-0.0.0.10/docs/aligned_junction_held_investigation.md +0 -466
  15. cogames_agents-0.0.0.10/docs/app-backend-eval-pipeline.md +0 -68
  16. cogames_agents-0.0.0.10/docs/aws-sso-on-mettabox.md +0 -98
  17. cogames_agents-0.0.0.10/docs/beta-cvc-policy-validation.md +0 -126
  18. cogames_agents-0.0.0.10/docs/cogames-eval-internals.md +0 -210
  19. cogames_agents-0.0.0.10/docs/cogas-agent-design.md +0 -374
  20. cogames_agents-0.0.0.10/docs/cogsguard-mechanics-deep-dive.md +0 -458
  21. cogames_agents-0.0.0.10/docs/creating-scripted-agents.md +0 -539
  22. cogames_agents-0.0.0.10/docs/eval-results-log.md +0 -149
  23. cogames_agents-0.0.0.10/docs/evolution-system-architecture.md +0 -367
  24. cogames_agents-0.0.0.10/docs/leaderboard-submission-process.md +0 -430
  25. cogames_agents-0.0.0.10/docs/machina1-agent-analysis.md +0 -345
  26. cogames_agents-0.0.0.10/docs/metta-cogames-overview.md +0 -346
  27. cogames_agents-0.0.0.10/docs/mettaboxes.md +0 -226
  28. cogames_agents-0.0.0.10/docs/nim-vs-python-agents-comparison.md +0 -197
  29. cogames_agents-0.0.0.10/docs/role-distribution-analysis.md +0 -376
  30. cogames_agents-0.0.0.10/docs/scripted-agent-registry.md +0 -38
  31. cogames_agents-0.0.0.10/docs/training-and-submission-guide.md +0 -501
  32. cogames_agents-0.0.0.10/docs/wandb-analysis-cogsguard-training.md +0 -189
  33. cogames_agents-0.0.0.10/pyproject.toml +0 -75
  34. cogames_agents-0.0.0.10/scripts/README.md +0 -104
  35. cogames_agents-0.0.0.10/scripts/benchmark_agents.sh +0 -150
  36. cogames_agents-0.0.0.10/scripts/ci_eval.sh +0 -225
  37. cogames_agents-0.0.0.10/scripts/compare_agents.py +0 -169
  38. cogames_agents-0.0.0.10/scripts/enrich_eval_output.py +0 -237
  39. cogames_agents-0.0.0.10/scripts/eval_cogas.sh +0 -177
  40. cogames_agents-0.0.0.10/scripts/quick_eval.sh +0 -93
  41. cogames_agents-0.0.0.10/scripts/regression_check.py +0 -260
  42. cogames_agents-0.0.0.10/scripts/run_cogsguard_instrumented_audit.py +0 -215
  43. cogames_agents-0.0.0.10/scripts/run_cogsguard_parity.py +0 -158
  44. cogames_agents-0.0.0.10/scripts/run_cogsguard_rollout.py +0 -560
  45. cogames_agents-0.0.0.10/scripts/tune_cogas.sh +0 -194
  46. cogames_agents-0.0.0.10/setup.py +0 -128
  47. cogames_agents-0.0.0.10/src/cogames_agents/evals/__init__.py +0 -5
  48. cogames_agents-0.0.0.10/src/cogames_agents/evals/planky_evals.py +0 -424
  49. cogames_agents-0.0.0.10/src/cogames_agents/policy/evolution/__init__.py +0 -0
  50. cogames_agents-0.0.0.10/src/cogames_agents/policy/evolution/cogsguard/__init__.py +0 -0
  51. cogames_agents-0.0.0.10/src/cogames_agents/policy/evolution/cogsguard/evolution.py +0 -695
  52. cogames_agents-0.0.0.10/src/cogames_agents/policy/evolution/cogsguard/evolutionary_coordinator.py +0 -540
  53. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/__init__.py +0 -18
  54. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/agents.py +0 -87
  55. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/cogsguard_agents.nim +0 -555
  56. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/cogsguard_align_all_agents.nim +0 -569
  57. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/common.nim +0 -1054
  58. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/install.sh +0 -1
  59. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/nim_agents.nim +0 -62
  60. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/nim_agents.nims +0 -14
  61. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/nimby.lock +0 -3
  62. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/racecar_agents.nim +0 -844
  63. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/random_agents.nim +0 -68
  64. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/test_agents.py +0 -53
  65. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/thinky_agents.nim +0 -677
  66. cogames_agents-0.0.0.10/src/cogames_agents/policy/nim_agents/thinky_eval.py +0 -231
  67. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/README.md +0 -360
  68. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/__init__.py +0 -0
  69. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/baseline_agent.py +0 -1031
  70. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/__init__.py +0 -5
  71. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/context.py +0 -67
  72. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/entity_map.py +0 -157
  73. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/goal.py +0 -107
  74. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/goals/__init__.py +0 -27
  75. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/goals/aligner.py +0 -222
  76. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/goals/gear.py +0 -181
  77. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/goals/miner.py +0 -407
  78. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/goals/scout.py +0 -40
  79. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/goals/scrambler.py +0 -218
  80. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/goals/shared.py +0 -180
  81. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/goals/stem.py +0 -49
  82. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/goals/survive.py +0 -96
  83. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/navigator.py +0 -388
  84. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/obs_parser.py +0 -339
  85. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/policy.py +0 -470
  86. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/buggy/trace.py +0 -69
  87. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/__init__.py +0 -5
  88. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/context.py +0 -68
  89. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/entity_map.py +0 -152
  90. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/goal.py +0 -115
  91. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/goals/__init__.py +0 -27
  92. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/goals/aligner.py +0 -160
  93. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/goals/gear.py +0 -197
  94. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/goals/miner.py +0 -441
  95. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/goals/scout.py +0 -40
  96. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/goals/scrambler.py +0 -174
  97. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/goals/shared.py +0 -160
  98. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/goals/stem.py +0 -60
  99. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/goals/survive.py +0 -100
  100. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/navigator.py +0 -401
  101. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/obs_parser.py +0 -293
  102. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/policy.py +0 -525
  103. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogas/trace.py +0 -69
  104. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/CLAUDE.md +0 -517
  105. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/README.md +0 -252
  106. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/__init__.py +0 -74
  107. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/aligned_junction_held_investigation.md +0 -152
  108. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/aligner.py +0 -333
  109. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/behavior_hooks.py +0 -44
  110. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/control_agent.py +0 -323
  111. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/debug_agent.py +0 -533
  112. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/miner.py +0 -589
  113. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/options.py +0 -67
  114. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/parity_metrics.py +0 -36
  115. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/policy.py +0 -1972
  116. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/prereq_trace.py +0 -33
  117. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/role_trace.py +0 -50
  118. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/roles.py +0 -31
  119. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/rollout_trace.py +0 -40
  120. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/scout.py +0 -69
  121. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/scrambler.py +0 -350
  122. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/targeted_agent.py +0 -418
  123. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/teacher.py +0 -224
  124. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/types.py +0 -381
  125. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/cogsguard/v2_agent.py +0 -49
  126. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/common/__init__.py +0 -0
  127. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/common/geometry.py +0 -24
  128. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/common/roles.py +0 -34
  129. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/common/tag_utils.py +0 -48
  130. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/demo_policy.py +0 -242
  131. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/pathfinding.py +0 -126
  132. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/CLAUDE.md +0 -139
  133. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/IMPROVEMENTS.md +0 -160
  134. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/NOTES.md +0 -153
  135. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/PLAN.md +0 -254
  136. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/README.md +0 -189
  137. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/STRATEGY.md +0 -100
  138. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/__init__.py +0 -5
  139. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/context.py +0 -68
  140. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/entity_map.py +0 -152
  141. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/goal.py +0 -109
  142. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/goals/__init__.py +0 -27
  143. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/goals/aligner.py +0 -160
  144. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/goals/gear.py +0 -185
  145. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/goals/miner.py +0 -486
  146. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/goals/scout.py +0 -40
  147. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/goals/scrambler.py +0 -174
  148. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/goals/shared.py +0 -275
  149. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/goals/stem.py +0 -49
  150. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/goals/survive.py +0 -86
  151. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/navigator.py +0 -388
  152. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/obs_parser.py +0 -293
  153. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/policy.py +0 -1056
  154. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/tests/__init__.py +0 -0
  155. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/tests/conftest.py +0 -66
  156. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/tests/helpers.py +0 -159
  157. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/tests/test_aligner.py +0 -24
  158. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/tests/test_miner.py +0 -30
  159. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/tests/test_scout.py +0 -15
  160. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/tests/test_scrambler.py +0 -29
  161. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/tests/test_stem.py +0 -36
  162. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/planky/trace.py +0 -69
  163. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/types.py +0 -239
  164. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_agent/utils.py +0 -381
  165. cogames_agents-0.0.0.10/src/cogames_agents/policy/scripted_registry.py +0 -80
  166. cogames_agents-0.0.0.10/src/cogames_agents.egg-info/PKG-INFO +0 -85
  167. cogames_agents-0.0.0.10/src/cogames_agents.egg-info/SOURCES.txt +0 -189
  168. cogames_agents-0.0.0.10/src/cogames_agents.egg-info/requires.txt +0 -8
  169. cogames_agents-0.0.0.10/tests/conftest.py +0 -119
  170. cogames_agents-0.0.0.10/tests/test_agent_benchmarks.py +0 -210
  171. cogames_agents-0.0.0.10/tests/test_cogsguard_action_timing.py +0 -53
  172. cogames_agents-0.0.0.10/tests/test_cogsguard_miner_danger_radius.py +0 -67
  173. cogames_agents-0.0.0.10/tests/test_cogsguard_roles.py +0 -159
  174. cogames_agents-0.0.0.10/tests/test_eval_metrics.py +0 -324
  175. cogames_agents-0.0.0.10/tests/test_evolution.py +0 -492
  176. cogames_agents-0.0.0.10/tests/test_evolution_integration.py +0 -319
  177. cogames_agents-0.0.0.10/tests/test_evolutionary_coordinator.py +0 -296
  178. cogames_agents-0.0.0.10/tests/test_parity_metrics.py +0 -36
  179. cogames_agents-0.0.0.10/tests/test_planky_behaviors.py +0 -553
  180. cogames_agents-0.0.0.10/tests/test_prereq_trace.py +0 -37
  181. cogames_agents-0.0.0.10/tests/test_role_distributions.py +0 -205
  182. cogames_agents-0.0.0.10/tests/test_role_trace.py +0 -53
  183. cogames_agents-0.0.0.10/tests/test_rollout_trace.py +0 -32
  184. cogames_agents-0.0.0.10/tests/test_scripted_agent_tags.py +0 -23
  185. cogames_agents-0.0.0.10/tests/test_scripted_agent_type_tags.py +0 -19
  186. cogames_agents-0.0.0.10/tests/test_scripted_policies.py +0 -149
  187. cogames_agents-0.0.0.10/tests/test_scripted_registry.py +0 -35
  188. cogames_agents-0.0.0.10/tutorials/cogsguard_make_policy.ipynb +0 -204
  189. cogames_agents-0.0.0.10/tutorials/cogsguard_make_policy.md +0 -96
  190. cogames_agents-0.0.0.10/tutorials/cogsguard_make_policy.py +0 -135
  191. {cogames_agents-0.0.0.10 → cogames_agents-0.0.1}/setup.cfg +0 -0
  192. {cogames_agents-0.0.0.10 → cogames_agents-0.0.1}/src/cogames_agents/__init__.py +0 -0
  193. {cogames_agents-0.0.0.10 → cogames_agents-0.0.1}/src/cogames_agents/policy/__init__.py +0 -0
  194. {cogames_agents-0.0.0.10 → cogames_agents-0.0.1}/src/cogames_agents/py.typed +0 -0
  195. {cogames_agents-0.0.0.10 → cogames_agents-0.0.1}/src/cogames_agents.egg-info/dependency_links.txt +0 -0
  196. {cogames_agents-0.0.0.10 → cogames_agents-0.0.1}/src/cogames_agents.egg-info/top_level.txt +0 -0
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.4
2
+ Name: cogames-agents
3
+ Version: 0.0.1
4
+ Summary: Optional agent policies for CoGames
5
+ Requires-Python: <3.13,>=3.12
6
+ Description-Content-Type: text/markdown
7
+
8
+ # cogames-agents
9
+
10
+ Optional agent policies for CoGames.
@@ -0,0 +1,3 @@
1
+ # cogames-agents
2
+
3
+ Optional agent policies for CoGames.
@@ -0,0 +1,17 @@
1
+ [build-system]
2
+ requires = ["setuptools==80.9.0", "wheel==0.45.1"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "cogames-agents"
7
+ version = "0.0.1"
8
+ description = "Optional agent policies for CoGames"
9
+ readme = "README.md"
10
+ requires-python = ">=3.12,<3.13"
11
+
12
+ [tool.setuptools.packages.find]
13
+ where = ["src"]
14
+ include = ["cogames_agents", "cogames_agents.*"]
15
+
16
+ [tool.setuptools.package-data]
17
+ "cogames_agents" = ["py.typed"]
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.4
2
+ Name: cogames-agents
3
+ Version: 0.0.1
4
+ Summary: Optional agent policies for CoGames
5
+ Requires-Python: <3.13,>=3.12
6
+ Description-Content-Type: text/markdown
7
+
8
+ # cogames-agents
9
+
10
+ Optional agent policies for CoGames.
@@ -0,0 +1,9 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/cogames_agents/__init__.py
4
+ src/cogames_agents/py.typed
5
+ src/cogames_agents.egg-info/PKG-INFO
6
+ src/cogames_agents.egg-info/SOURCES.txt
7
+ src/cogames_agents.egg-info/dependency_links.txt
8
+ src/cogames_agents.egg-info/top_level.txt
9
+ src/cogames_agents/policy/__init__.py
@@ -1,2 +0,0 @@
1
- *.egg-info/
2
- __pycache__/
@@ -1 +0,0 @@
1
- 2.2.6
@@ -1 +0,0 @@
1
- 0.1.18
@@ -1,9 +0,0 @@
1
- # Include Nim source files for building from source distribution
2
- recursive-include src/cogames_agents/policy/nim_agents *.nim *.nims
3
- include src/cogames_agents/policy/nim_agents/nimby.lock
4
- include .nim-version
5
- include .nimby-version
6
-
7
- # Exclude build artifacts
8
- prune src/cogames_agents/policy/nim_agents/nimbledeps
9
- prune src/cogames_agents/policy/nim_agents/bindings/generated
@@ -1,85 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: cogames-agents
3
- Version: 0.0.0.10
4
- Summary: Optional agent policies for CoGames
5
- Author: Metta AI
6
- License-Expression: MIT
7
- Project-URL: Homepage, https://github.com/Metta-AI/metta/tree/main/packages/cogames-agents
8
- Project-URL: Repository, https://github.com/Metta-AI/metta
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: Programming Language :: Python :: 3.12
11
- Classifier: Operating System :: POSIX :: Linux
12
- Classifier: Operating System :: MacOS
13
- Requires-Python: <3.13,>=3.12
14
- Description-Content-Type: text/markdown
15
- Requires-Dist: cogames==0.3.68
16
- Requires-Dist: mettagrid==0.2.0.82
17
- Requires-Dist: numpy>=2.0.0
18
- Provides-Extra: test
19
- Requires-Dist: pytest; extra == "test"
20
- Requires-Dist: pytest-xdist; extra == "test"
21
- Requires-Dist: ruff; extra == "test"
22
-
23
- # cogames-agents
24
-
25
- Optional scripted policies for CoGames. Use them for quick baselines, play/eval smoke tests, or as teacher policies.
26
-
27
- ## Scripted policy registry
28
-
29
- The registry at `cogames_agents.policy.scripted_registry` maps policy `short_names` to `metta://policy/...` URIs.
30
- Scripted agents and teachers share these identifiers, so the same name works for evaluation, play, and
31
- `TeacherConfig.policy_uri`.
32
-
33
- To list the current names:
34
-
35
- ```
36
- python -c "from cogames_agents.policy.scripted_registry import list_scripted_agent_names; print(list_scripted_agent_names())"
37
- ```
38
-
39
- Common scripted policy names include:
40
-
41
- - Baselines: `baseline`, `tiny_baseline`, `ladybug_py`
42
- - Nim baselines: `thinky`, `race_car`, `ladybug`, `nim_random`
43
- - CogsGuard core: `role`, `role_py`, `wombo`
44
- - CogsGuard variants: `alignall`, `cogsguard_control`, `cogsguard_targeted`, `cogsguard_v2`
45
- - CogsGuard roles: `miner`, `scout`, `aligner`, `scrambler`
46
- - Teacher: `teacher`
47
-
48
- For the full registry snapshot, see `docs/scripted-agent-registry.md`.
49
-
50
- Role-specific policies are exposed via role names (miner/scout/aligner/scrambler). For the teacher policy, you can pass
51
- `role_vibes` as a comma-separated list:
52
-
53
- ```
54
- metta://policy/teacher?role_vibes=miner,scout
55
- ```
56
-
57
- Fixed-role mixes and explicit orderings are configured via `role_py` parameters:
58
-
59
- Examples:
60
-
61
- ```
62
- metta://policy/role_py?role_cycle=aligner,miner,scrambler,scout
63
- metta://policy/role_py?role_order=aligner,miner,aligner,miner,scout
64
- ```
65
-
66
- ## Recipe usage
67
-
68
- The `recipes.experiment.scripted_agents` recipe accepts the same scripted policy names:
69
-
70
- ```
71
- ./tools/run.py recipes.experiment.scripted_agents.play agent=thinky suite=cvc_arena
72
- ./tools/run.py recipes.experiment.scripted_agents.play agent=miner suite=cogsguard
73
- ```
74
-
75
- ## Included policies
76
-
77
- - Short names map to the fastest implementation (Nim when available, otherwise Python).
78
- - `_nim` aliases exist when there is a Nim implementation alongside Python.
79
- - See `docs/scripted-agent-registry.md` for the canonical short-name list.
80
- - Teacher wrapper: `teacher` (`teacher_nim`) forces an initial role/vibe, then delegates to the Nim policy.
81
-
82
- ## Docs
83
-
84
- - `docs/mettaboxes.md` (mettabox usage guide)
85
- - `docs/aws-sso-on-mettabox.md` (AWS SSO login from inside mettabox containers)
@@ -1,47 +0,0 @@
1
- # co_gas
2
-
3
- **Mission: Get to the top of the Beta-CogsGuard leaderboard.**
4
-
5
- We build competitive CogsGuard agents — scripted baselines, trained policies, and optimized submissions — all aimed at
6
- ranking #1.
7
-
8
- ## Approach
9
-
10
- 1. **Scripted agent baselines** — hand-coded strategies in `cogames-agents/` covering guard and intruder roles
11
- 2. **Behavioral cloning (BC)** — train neural policies from scripted agent demonstrations
12
- 3. **PPO optimization** — fine-tune trained policies with reinforcement learning
13
- 4. **Leaderboard submission** — evaluate and submit top-performing agents
14
-
15
- ## Quick Start
16
-
17
- ```bash
18
- # Play a scripted agent locally
19
- cogames play --mission CogsGuard
20
-
21
- # Train a policy via BC or PPO
22
- cogames train --mission CogsGuard
23
-
24
- # Run a scrimmage between agents
25
- cogames scrimmage --mission CogsGuard
26
- ```
27
-
28
- ## Repository Structure
29
-
30
- - `cogames-agents/` — scripted agents, evolution system, and training workflows
31
- - `cogames-agents/docs/` — detailed documentation (see index below)
32
-
33
- ## Docs Index
34
-
35
- See [`cogames-agents/docs/`](cogames-agents/docs/) for full documentation:
36
-
37
- - [Creating Scripted Agents](cogames-agents/docs/creating-scripted-agents.md)
38
- - [Evolution System Architecture](cogames-agents/docs/evolution-system-architecture.md)
39
- - [Training & Submission Guide](cogames-agents/docs/training-and-submission-guide.md)
40
- - [Scripted Agent Registry](cogames-agents/docs/scripted-agent-registry.md)
41
- - [Nim vs Python Agents Comparison](cogames-agents/docs/nim-vs-python-agents-comparison.md)
42
- - [Mettaboxes](cogames-agents/docs/mettaboxes.md)
43
- - [W&B Analysis](cogames-agents/docs/wandb-analysis-cogsguard-training.md)
44
-
45
- ## Team
46
-
47
- Rig: `co_gas/polecats/rust`
@@ -1,63 +0,0 @@
1
- # cogames-agents
2
-
3
- Optional scripted policies for CoGames. Use them for quick baselines, play/eval smoke tests, or as teacher policies.
4
-
5
- ## Scripted policy registry
6
-
7
- The registry at `cogames_agents.policy.scripted_registry` maps policy `short_names` to `metta://policy/...` URIs.
8
- Scripted agents and teachers share these identifiers, so the same name works for evaluation, play, and
9
- `TeacherConfig.policy_uri`.
10
-
11
- To list the current names:
12
-
13
- ```
14
- python -c "from cogames_agents.policy.scripted_registry import list_scripted_agent_names; print(list_scripted_agent_names())"
15
- ```
16
-
17
- Common scripted policy names include:
18
-
19
- - Baselines: `baseline`, `tiny_baseline`, `ladybug_py`
20
- - Nim baselines: `thinky`, `race_car`, `ladybug`, `nim_random`
21
- - CogsGuard core: `role`, `role_py`, `wombo`
22
- - CogsGuard variants: `alignall`, `cogsguard_control`, `cogsguard_targeted`, `cogsguard_v2`
23
- - CogsGuard roles: `miner`, `scout`, `aligner`, `scrambler`
24
- - Teacher: `teacher`
25
-
26
- For the full registry snapshot, see `docs/scripted-agent-registry.md`.
27
-
28
- Role-specific policies are exposed via role names (miner/scout/aligner/scrambler). For the teacher policy, you can pass
29
- `role_vibes` as a comma-separated list:
30
-
31
- ```
32
- metta://policy/teacher?role_vibes=miner,scout
33
- ```
34
-
35
- Fixed-role mixes and explicit orderings are configured via `role_py` parameters:
36
-
37
- Examples:
38
-
39
- ```
40
- metta://policy/role_py?role_cycle=aligner,miner,scrambler,scout
41
- metta://policy/role_py?role_order=aligner,miner,aligner,miner,scout
42
- ```
43
-
44
- ## Recipe usage
45
-
46
- The `recipes.experiment.scripted_agents` recipe accepts the same scripted policy names:
47
-
48
- ```
49
- ./tools/run.py recipes.experiment.scripted_agents.play agent=thinky suite=cvc_arena
50
- ./tools/run.py recipes.experiment.scripted_agents.play agent=miner suite=cogsguard
51
- ```
52
-
53
- ## Included policies
54
-
55
- - Short names map to the fastest implementation (Nim when available, otherwise Python).
56
- - `_nim` aliases exist when there is a Nim implementation alongside Python.
57
- - See `docs/scripted-agent-registry.md` for the canonical short-name list.
58
- - Teacher wrapper: `teacher` (`teacher_nim`) forces an initial role/vibe, then delegates to the Nim policy.
59
-
60
- ## Docs
61
-
62
- - `docs/mettaboxes.md` (mettabox usage guide)
63
- - `docs/aws-sso-on-mettabox.md` (AWS SSO login from inside mettabox containers)
@@ -1,130 +0,0 @@
1
- # Tribal Village Temple Role System (Notes)
2
-
3
- This doc summarizes the role-mixing system in `tribal-village` so we can port a homologous evolution system into
4
- `richard-evolution`. We are not bringing the temple building itself; the focus is on the role catalog, recombination,
5
- and mutation mechanics. It is descriptive, not a proposal.
6
-
7
- ## Where it lives (tribal-village)
8
-
9
- - `src/scripted/ai_defaults.nim`: role assignment, role pool, temple hybrid flow.
10
- - `src/scripted/roles.nim`: role/behavior catalog, tiers, materialization.
11
- - `src/scripted/evolution.nim`: sampling, recombination, mutation, scoring.
12
- - `src/step.nim`: temple spawn that triggers hybrid requests.
13
- - `src/types.nim`: `TempleHybridRequest` definition.
14
-
15
- ## Core model
16
-
17
- - **BehaviorDef**: wraps an `OptionDef` plus fitness, games, uses.
18
- - **RoleDef**: list of tiers (`RoleTier`), origin, kind (Gatherer/Builder/Fighter/Scripted), fitness and win tracking,
19
- optional name lock.
20
- - **RoleTier**: ordered behavior IDs with a selection mode:
21
- - fixed: use given order
22
- - shuffle: randomize per materialization
23
- - weighted: weighted shuffle using tier weights
24
- - **RoleCatalog**: holds behavior and role registries and can serialize history to `data/role_history.json`.
25
-
26
- ## Option execution (behavior list)
27
-
28
- Roles are materialized into `OptionDef` sequences (`materializeRoleOptions`) and executed by `runOptions` (in
29
- `options.nim`): the active option runs until it terminates or returns 0, otherwise higher-priority options can pre-empt
30
- if they are marked interruptible.
31
-
32
- ## Role pool + assignment
33
-
34
- - Core roles are built from Gatherer/Builder/Fighter option lists.
35
- - A role pool is built from all non-core roles; if none exist, core roles are used as a fallback pool.
36
- - Scripted agents can either explore (generate a new role) or sample a role from the pool weighted by role fitness.
37
- - `ScriptedRoleExplorationChance` = 0.08, `ScriptedRoleMutationChance` = 0.25, `ScriptedGeneratedRoleCount` = 16.
38
-
39
- ## Evolution and scoring
40
-
41
- - `sampleRole` builds N tiers (2-4) with 1-3 behaviors per tier, chosen with weights based on behavior fitness.
42
- - `recombineRoles` splices tier ranges from two parents at random cut points.
43
- - `mutateRole` can replace behavior IDs and flip tier selection modes.
44
- - `applyScriptedScoring` scores roles and behaviors using territory share at `ScriptedScoreStep` (5000), updating EMA
45
- fitness and persisting history.
46
- - `lockRoleNameIfFit` freezes names once fitness crosses 0.7.
47
-
48
- ## Temple hybrid flow
49
-
50
- 1. **Spawn trigger** (`src/step.nim`): when two adjacent agents of the same team stand next to a Temple and an altar
51
- heart is available, a child agent is spawned. A `TempleHybridRequest(parentA, parentB, childId, teamId, pos)` is
52
- queued.
53
- 2. **Processing** (`processTempleHybridRequests` in `ai_defaults.nim`):
54
- - Lookup each parent's current role.
55
- - `recombineRoles` to build a hybrid role.
56
- - Optional mutation and an extra behavior injection (35% chance) into the first tier (`injectBehavior`).
57
- - Mark role origin as `"temple"` and register it in the catalog.
58
- - Add to role pool and mark `pendingHybridRoles[childId]`.
59
- - Reset the child agent init flag so the hybrid is applied next tick.
60
- 3. **Assignment** (`assignScriptedRole`): if a pending hybrid is set, the child is assigned the new role immediately
61
- before any other selection.
62
-
63
- ## Metta adaptation (no temple building)
64
-
65
- - We want the same role catalog, tier recombination, and mutation mechanics.
66
- - The trigger is **not** a temple spawn. It can be end-of-episode, a fixed cadence, or an external coordinator signal.
67
- - Hybrid roles are still generated by recombining two parent roles, then optionally mutating/injecting a behavior.
68
-
69
- ## What this implies for our port
70
-
71
- - We need a **role catalog** that can compose option lists from behaviors and persist fitness history.
72
- - The **temple trigger** is an environment event (spawn/interaction) that queues a hybrid request, not an agent
73
- decision.
74
- - Hybridization is **tier-based recombination** with optional mutation and behavior injection, then assignment to the
75
- newborn agent.
76
- - The system is light-weight: it relies on option lists rather than training.
77
-
78
- ## Current richard-evolution implementation
79
-
80
- - Core evolution logic: `packages/cogames-agents/src/cogames_agents/policy/evolution/cogsguard/evolution.py`.
81
- - Coordinator and role selection:
82
- `packages/cogames-agents/src/cogames_agents/policy/evolution/cogsguard/evolutionary_coordinator.py`.
83
- - Trigger today is **coordinator-driven** (games per generation), not an environment event.
84
- - `CogsguardPolicy` can opt into evolutionary role selection via URI flags (`evolution=1`, `evolutionary=1`, or
85
- `evolve=1`).
86
- - Behavior hooks are wired up for integration (see
87
- `packages/cogames-agents/src/cogames_agents/policy/scripted_agent/cogsguard/behavior_hooks.py`): the coordinator can
88
- call real role behaviors when hooks are provided, but live execution still uses vibe-based roles.
89
-
90
- ## Gaps vs an across-episode evolution loop
91
-
92
- - **No episode trigger wired yet.** `record_agent_performance` and `end_game` exist but are not called from the policy,
93
- so fitness stays at defaults and selection is effectively uniform.
94
- - **Evolved roles don’t drive behavior.** Roles are mapped back to base vibes, so recombination/mutation does not change
95
- the actual action ordering or per-step decisions.
96
- - **No persistence.** Role/behavior history isn’t saved or loaded (no `role_history.json` analog), so evolution resets
97
- per run.
98
-
99
- ## Suggested wiring (future work)
100
-
101
- 1. **Episode completion → scoring**
102
- - Pick a stable signal (team score, win/loss, hearts/influence delta, territory control).
103
- - Call `record_agent_performance(agent_id, score, won)` per agent at episode end.
104
- - Call `end_game(won)` to advance generations after `games_per_generation`.
105
-
106
- 2. **Role execution path**
107
- - Decide whether evolved roles should execute **behavior lists** (preferred) or keep mapping to base vibes.
108
- - If using lists, materialize behaviors and run them via `run_options` (interruptible, priority tiers).
109
- - Map behavior names to real role actions via `behavior_hooks` (already available).
110
-
111
- 3. **Persistence**
112
- - Serialize `RoleCatalog` fitness + usage into a JSON file under `data/` (or run output dir).
113
- - Load history at coordinator init (matching tribal-village’s `role_history.json` pattern).
114
-
115
- 4. **Coordinator integration**
116
- - Keep `SmartRoleCoordinator` as fallback when evolution is disabled.
117
- - For `evolution=1`, use the evolutionary coordinator for **gear** decisions and optionally replace smart-role
118
- reassignment logic in `_maybe_switch_smart_role`.
119
-
120
- 5. **Testing additions**
121
- - Add unit tests for persistence (save/load round-trip, fitness continuity).
122
- - Add integration tests for scoring triggers (episode end increments generation).
123
- - Add behavior-execution tests to ensure evolved tiers change option order.
124
-
125
- ## Open questions to resolve
126
-
127
- - What is the authoritative “score” for a role? (team win/loss, territory share, resource throughput, alignment control)
128
- - Should evolution be per-team or global across teams? (fitness updates per team vs pooled)
129
- - What cadence should evolve roles? (fixed games, fixed steps, external evaluation)
130
- - How much variance is acceptable before locking names / freezing roles?