Add verified medical MAS historical archive
Browse filesAdds deterministic raw-output shards, analysis-ready inputs, provenance-labelled code snapshots, and rebuilt global integrity ledgers for the historical medical MAS evidence.
This view is limited to 50 files because it contains too many changes. See raw diff
- CHECKSUMS.sha256 +172 -11
- DATA_MANIFEST.csv +170 -9
- RELEASE_METADATA.json +8 -3
- data/external/results/formal/early_mas_architecture_motivation/README.md +38 -2
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed42.yaml +33 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed43.yaml +33 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed44.yaml +33 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/baseline/all_results.csv +0 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/baseline/summary.json +89 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/fixed6/all_results.csv +0 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/fixed6/summary.json +82 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/tuned/all_results.csv +0 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/tuned/summary.json +90 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/gain_bottleneck_report.json +681 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/legacy_3seed_summary.md +79 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/oracle_trials.csv +0 -0
- data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/protocol_results.csv +0 -0
- data/external/results/formal/early_mas_architecture_motivation/audits/code_security_gate.md +27 -0
- data/external/results/formal/early_mas_architecture_motivation/audits/code_snapshot_security_scan.json +13 -0
- data/external/results/formal/early_mas_architecture_motivation/audits/code_snapshot_security_scan.metadata.json +17 -0
- data/external/results/formal/early_mas_architecture_motivation/audits/payload_security_scan.json +18 -0
- data/external/results/formal/early_mas_architecture_motivation/audits/payload_security_scan.metadata.json +17 -0
- data/external/results/formal/early_mas_architecture_motivation/audits/private_release_verification.json +13 -0
- data/external/results/formal/early_mas_architecture_motivation/audits/private_release_verification.metadata.json +19 -0
- data/external/results/formal/early_mas_architecture_motivation/audits/provenance_and_qa.md +19 -21
- data/external/results/formal/early_mas_architecture_motivation/audits/provenance_and_qa.metadata.json +29 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/pyproject.toml +15 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/pytest.ini +5 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/__init__.py +1 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/__main__.py +194 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/agent.py +422 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/config.py +52 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/data/__init__.py +1 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/data/loader.py +51 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/__init__.py +1 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/analyzer.py +89 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/collector.py +38 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/runner.py +404 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/__init__.py +17 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/base.py +9 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/complete.py +12 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/hierarchical.py +36 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/ring.py +24 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/single.py +8 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/star.py +23 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/types.py +92 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/__init__.py +0 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/conftest.py +46 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_agent.py +218 -0
- data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_analyze_ab_details.py +184 -0
CHECKSUMS.sha256
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
|
| 2 |
40b0edb03973b3e422e88359d0e5c5c61cd1cb40310c2a96e58467d7b01ce796 EXCLUDED_FILES.csv
|
| 3 |
6ed02104f3215c59e03dcba1bb0c87a2e684b881d82acf6a1fafd1dc1ecaab69 README.md
|
| 4 |
-
|
| 5 |
b8677fbe2da2f2dcd8d4d941b4e953e05caf6e27338db67e65aa2615aebd3429 SOURCE_SYMLINKS.csv
|
| 6 |
3edbd31d6821ad7f499519d5516ab28264572352b404fbbdae9cfc6cbe72276a THIRD_PARTY_NOTICES.md
|
| 7 |
f92e97647aa426aec2b2fa08c830cb771aa840f0b6b6eafbffc37c146e2d7cf9 data/derived/pool_setting_k16_vote_structure_summary.csv
|
|
@@ -103,18 +103,179 @@ e66c021a3c18857ec51c7c35602a8d81ef363ee9e618095b8452d788b970d3f2 data/external/
|
|
| 103 |
0998c2022173143eb97b05445d44b4e7f514ab95ebf603362551f5a3159b54e8 data/external/evidence/formal/prospective_diffusion_validation/sample_plan.metadata.json
|
| 104 |
4a06d9e8fbad3d96b29d6274aafd621bd7283f8846a1c53cc269ed4eb0a596fe data/external/evidence/formal/prospective_diffusion_validation/source_paths.md
|
| 105 |
0ef16575b487cfe58527a1dcd2e78fcff1e0e6dda8241985d9f63ced392b895b data/external/results/formal/README.md
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
1ea792219dde6450744dbb7ee4b6b10d2881f392d3401f3a3ec109ca5d9b9a79 data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_consensus_bypass_summary.csv
|
| 111 |
-
|
| 112 |
-
|
|
|
|
|
|
|
| 113 |
dd2119db18e7d83e9e8efd5b945aa75c9ec2022210b43cb1f03d6a36bea5cdf8 data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_benchmark_discussion_controls.csv
|
| 114 |
-
|
|
|
|
| 115 |
7dd4aff44b730a7295ab79107164868f884ff9c9b2bd1353b62d9c1a258afe78 data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_mechanism_pilot_summary.csv
|
| 116 |
-
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
d871b3cabeb8a103203b5cf66be2e8a34f4d2829652a2498b6b8a4c4c5436c51 data/external/results/formal/five_benchmark_cost_efficiency/README.md
|
| 119 |
f0c8b7ee3fb57c984b9caee42d68f58f126f2faf7b4d661a443cb1354de3227d data/external/results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.log
|
| 120 |
adde7549dc8ef3f9954df91107df5cff37d630b99ab6a2fa4e332a101a5be0a1 data/external/results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.status
|
|
|
|
| 1 |
+
dd5d3af8f027b9cbd8f098586ebdff865ac816745b9432fe942ed5d9361390ac DATA_MANIFEST.csv
|
| 2 |
40b0edb03973b3e422e88359d0e5c5c61cd1cb40310c2a96e58467d7b01ce796 EXCLUDED_FILES.csv
|
| 3 |
6ed02104f3215c59e03dcba1bb0c87a2e684b881d82acf6a1fafd1dc1ecaab69 README.md
|
| 4 |
+
cf5aaea1850ddb23238eb3c3eeb2386f3f736ef903e65e4b3c64d23d05d84633 RELEASE_METADATA.json
|
| 5 |
b8677fbe2da2f2dcd8d4d941b4e953e05caf6e27338db67e65aa2615aebd3429 SOURCE_SYMLINKS.csv
|
| 6 |
3edbd31d6821ad7f499519d5516ab28264572352b404fbbdae9cfc6cbe72276a THIRD_PARTY_NOTICES.md
|
| 7 |
f92e97647aa426aec2b2fa08c830cb771aa840f0b6b6eafbffc37c146e2d7cf9 data/derived/pool_setting_k16_vote_structure_summary.csv
|
|
|
|
| 103 |
0998c2022173143eb97b05445d44b4e7f514ab95ebf603362551f5a3159b54e8 data/external/evidence/formal/prospective_diffusion_validation/sample_plan.metadata.json
|
| 104 |
4a06d9e8fbad3d96b29d6274aafd621bd7283f8846a1c53cc269ed4eb0a596fe data/external/evidence/formal/prospective_diffusion_validation/source_paths.md
|
| 105 |
0ef16575b487cfe58527a1dcd2e78fcff1e0e6dda8241985d9f63ced392b895b data/external/results/formal/README.md
|
| 106 |
+
21ce9218073aee47e04594de2386e8a3fd0e4a6f48ca5b7c97fd2d13a7beb0d1 data/external/results/formal/early_mas_architecture_motivation/README.md
|
| 107 |
+
4aeb065fb9fb7de6521c557b73a7e8aef4cf360736d68e4c6a786ec7ddd6607f data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed42.yaml
|
| 108 |
+
7ff5fc11538def5c077309281e4a544897b3d27ba39a33fffd403cd853b9765a data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed43.yaml
|
| 109 |
+
e839ac0c62c5a149d1b99d237c7d8c73b98037f1ea9e81931c1c4e998d237d19 data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed44.yaml
|
| 110 |
+
1d62980ea5a0d6fee72bf94f408a60be27b99995985963395e51e18aeea7d675 data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/baseline/all_results.csv
|
| 111 |
+
2c0bdec413c879684db2528c4eb37d1cb7f8f366d49aacadedcd5bbc931eef16 data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/baseline/summary.json
|
| 112 |
+
047cab62f4831e320516d14a5554cf3bd7f595004fa4400da84955bd5627675e data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/fixed6/all_results.csv
|
| 113 |
+
c4013cb3ad5255f07555f99deb4b96bb0d2202e260071d4fc0a660f98cb33ebe data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/fixed6/summary.json
|
| 114 |
+
c8d553568735f5c1bbe3f79ca280312090d448594709bace7fa77a21d15d86a4 data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/tuned/all_results.csv
|
| 115 |
+
ca4122852b29fb9549c17bb08a22f86358eda2e47d323579dd87c433ff368bbb data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/tuned/summary.json
|
| 116 |
+
054b69cb30f3eac151d40e29cda7e4970705f288b1ca6a4c586ad32e33719acd data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/gain_bottleneck_report.json
|
| 117 |
+
d64229bd5fe5475527b6f5cd6719a3da09ff1bf1e086513d2ae248b6dbe0f15a data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/legacy_3seed_summary.md
|
| 118 |
+
de275959a071640633f446a344608fb84e57a49294b2ab956179de129f7e1638 data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/oracle_trials.csv
|
| 119 |
+
b9d074ef8eb51315ceee82bb63dbc32da4926f42d8b7c04e3d16bdc74c3298e4 data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/protocol_results.csv
|
| 120 |
+
d382e8fda4a21bd54aeb7f975b3e2df690f09f5fbb3a73d90ef22145907fcee9 data/external/results/formal/early_mas_architecture_motivation/audits/code_security_gate.md
|
| 121 |
+
62aeedae6f9c813a65a4de47f626196a4a0aa69d8ca6729601fd263192b8f970 data/external/results/formal/early_mas_architecture_motivation/audits/code_snapshot_security_scan.json
|
| 122 |
+
c052ffdf2024b5024b78cb61fca415b8e52da72300407b9aac335e31ec1b85c8 data/external/results/formal/early_mas_architecture_motivation/audits/code_snapshot_security_scan.metadata.json
|
| 123 |
+
d3e82e115abddff2d6151381f0d44e52484471579f9c44629e7000754ad4afe1 data/external/results/formal/early_mas_architecture_motivation/audits/payload_security_scan.json
|
| 124 |
+
5c018829edb980f1e488e746fc680b1b9254d97f39f50f596e4dbf1fd98e6327 data/external/results/formal/early_mas_architecture_motivation/audits/payload_security_scan.metadata.json
|
| 125 |
+
0e19cf04a8030280e26eb239651ba47dd5ccb1073835f0cee9566fcc8e214639 data/external/results/formal/early_mas_architecture_motivation/audits/private_release_verification.json
|
| 126 |
+
94d6c3ad4f5f9b662a028cf0cec93c56a5b5070c5140f7c1dccbcb459b70d61d data/external/results/formal/early_mas_architecture_motivation/audits/private_release_verification.metadata.json
|
| 127 |
+
cea540e96b20147b86dd2791dacf60ba29504d66c55e0300bc975e284420ae22 data/external/results/formal/early_mas_architecture_motivation/audits/provenance_and_qa.md
|
| 128 |
+
b0ba46b78b85d8e74fb7e47ed59ec655db9a40284dcc502c6e5eb5095a7e4c6f data/external/results/formal/early_mas_architecture_motivation/audits/provenance_and_qa.metadata.json
|
| 129 |
+
2a52f22d56d2bccb87573b9e349497ae5f057b8108ffa8558b19f29ec1342ec0 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/pyproject.toml
|
| 130 |
+
b769e070eb76e69b821b68d31bcf20e850ec74eda6491c664d04184e9ce1691b data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/pytest.ini
|
| 131 |
+
222a8f2c7f63d7e3d4a5165f515111016b552c563a94420adb3fe23cd4e961fd data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/__init__.py
|
| 132 |
+
da3c833adaea421e012e1c6c57c3d919035430ef0a4e30e97e458fc84761788b data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/__main__.py
|
| 133 |
+
428357d3921165e377dfafb5b88dc79899e2ae69a911fe5460a3af6b9e1cae18 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/agent.py
|
| 134 |
+
f67c2acb0b1bf49b613e977a189c968a6d9d0aa6630d5576753bafc7557a9e70 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/config.py
|
| 135 |
+
c0bf0688d03ec00e93160193b9cc13960c99c05b90167e72f12d16b5fd5477b3 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/data/__init__.py
|
| 136 |
+
247dace738280caae0eea745349fa02eb10f92106147ae6b4d988bc9968fc2ba data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/data/loader.py
|
| 137 |
+
cca37fb69099489cbaed5ba0d9fd71636ece6a14313ce9946d9d33cd562a84f7 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/__init__.py
|
| 138 |
+
81285eeb497531b129a5ba38d15c8059cf911b3e8e27aa587bb2bbf69c1f7784 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/analyzer.py
|
| 139 |
+
21096979d1ef7087f23011e71cd2b211b2a9584ee9c18b12d8faa929c71790c1 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/collector.py
|
| 140 |
+
fd9b29bac159a713df19ebadba81eb52e165447ceb76d197b93b1c2edb91b15f data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/runner.py
|
| 141 |
+
8124df00004e9016f10c5b65d01bf3cfaca4f1dc5c63828a6b25f79f406c711f data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/__init__.py
|
| 142 |
+
8de0d4d54010d988ac00f13fafe74a50bd2ecffc5c5a2035a4f6569d0ba11cf3 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/base.py
|
| 143 |
+
dc160e6f7425e7d4e330feca841a66e0b0f11400c089fe12adeba29338536be8 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/complete.py
|
| 144 |
+
afc8676ed6467bbf02e0c9447f02a4e4f5592d5531815f6d5cd07644f43f9b33 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/hierarchical.py
|
| 145 |
+
cec62f0d9c171296297c03e318177f1cbd6c4bf762a97be519132b73d5f30a23 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/ring.py
|
| 146 |
+
42daf2df33fc1fb5a191f24c73ef872db98223924b6f382b7ad2580e411ccfbb data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/single.py
|
| 147 |
+
b8e41545da7f21f71274d6f4d9ff1c457e5bf6d50f7c40d67ce6529711599871 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/star.py
|
| 148 |
+
f04094d8f37ef9893a9c5398c58dc26e860425eb0fd8f59d4f4a7d2c9f681b5d data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/types.py
|
| 149 |
+
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/__init__.py
|
| 150 |
+
2e66206d6609983c96a99e1551fb4d49042e72b4f4ab7baf7fac19308e66d3a9 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/conftest.py
|
| 151 |
+
96255965437e48df0b540ae557f078c9b60d2210deec8567bd7bb844d0550312 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_agent.py
|
| 152 |
+
73e145e0f3a616a6e961fe203bc4146920b8528fb7edb06f68f526dafe984d47 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_analyze_ab_details.py
|
| 153 |
+
33215c31b6cb99bd7dd1a844176232c5017aafc74f10212943f89ae91a446ea4 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_compare_ab.py
|
| 154 |
+
b83565f4a1d361c89138c484a4d6c3f25e6db7b018772ffa17c11e7928d03395 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_grid_search.py
|
| 155 |
+
be3f3fc823f899664241bf3a2eedc7ad722a64ce0923d4ae952add613c088ff7 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_loader.py
|
| 156 |
+
3baa2d91a8a3562741189983bf5082f63883aa5091af75b8121e8fbff4e37065 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_random_round_0.py
|
| 157 |
+
f4b794a0a34f8fe5de2af3c831fdd758d2dfb77ab7485f95ac11db38875ad22c data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_results_analysis.py
|
| 158 |
+
cbe37aca0c9f15f40d7268255fb3cdfd55aece30c132de8352f7dbec3ac3ee97 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_runner_convergence.py
|
| 159 |
+
e78f60ff58fd2d48e5938bd6cc327fa3af3ea70f22fc2b5aff0ee93d50fb2ba9 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_simulate_thresholds.py
|
| 160 |
+
41458fd0ac7fb29bc2458aef6b206ba1337218bc28f279a76197bc18811c42fd data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_topologies.py
|
| 161 |
+
f4ff5a0c8a4282dc6ef813f23c6d8a874d60bf988fca9f41ab46f4dfadd8a67e data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_types.py
|
| 162 |
+
9277de18ac2cd23db4ecbdaf831e55c6ec640c3756accb856f9c6a9f14d840f2 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/uv.lock
|
| 163 |
+
cd0cf81d44cb6a3985608901310fbc11a1298304dfb7c83b201fd22b1738e531 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/scripts/analyze_gain_bottlenecks.py
|
| 164 |
+
a9813fb57029da6bc64658b7005098e09951a02f349f2ef00133ddabf667ad5c data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/scripts/analyze_multiseed.py
|
| 165 |
+
d548941432ec8dcb8d66f80076d0f1f34e3a6a45e9bca7c78d9eec5e899b7783 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/tests/test_analyze_gain_bottlenecks.py
|
| 166 |
+
c179f69926f41525c6bf35225dbfb23b7cffcc2fc04166121e12a0f028d41b70 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/tests/test_analyze_multiseed.py
|
| 167 |
+
4aeb065fb9fb7de6521c557b73a7e8aef4cf360736d68e4c6a786ec7ddd6607f data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/configs/experiments/real_llm_full_seed42.yaml
|
| 168 |
+
7ff5fc11538def5c077309281e4a544897b3d27ba39a33fffd403cd853b9765a data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/configs/experiments/real_llm_full_seed43.yaml
|
| 169 |
+
e839ac0c62c5a149d1b99d237c7d8c73b98037f1ea9e81931c1c4e998d237d19 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/configs/experiments/real_llm_full_seed44.yaml
|
| 170 |
+
822aa288d18bb4fce8ceb162dcdf560686c8aa6fb9d88a1f9e17e2d3be870478 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/__init__.py
|
| 171 |
+
030602002390b85618417a22724e4c8ea40c72b873447936d8bcbeba218443ff data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/adapters/__init__.py
|
| 172 |
+
8bb35ecc88047544edf2d2aac0551a07c0020bf158aa6c3c3c865ef00c7cb039 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/adapters/medxpertqa.py
|
| 173 |
+
a3622474d26a02b4161fbb413be6b2b41f9d7ec0819563bf5845ecf64ae5689b data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/__init__.py
|
| 174 |
+
662a6cc4de2dde928186990176e0f5c6f58f064a9dee81d4ab4f383334fa1f77 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/anonymization.py
|
| 175 |
+
026be8acd756e50b7178bfb5f5e3879b7f13e7650821c01f5fec25cc912d4781 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/decision_rules.py
|
| 176 |
+
d26b3cd8a7171ea7ef7cdb4c14ae182c6c0bdb59bb6ced165c8dad033cec67d9 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/evidence_board.py
|
| 177 |
+
5cfa68101eac15b950f73da25b83c8eef86c590dc1aee089323975f6cffa1cb1 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/evidence_extraction.py
|
| 178 |
+
648565efab2808056e1b40396fc34f586ac7fbf98f22f23a11da4967e4ccc810 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/metrics.py
|
| 179 |
+
9288ebb5c1370e8ccf6f0f058d8451ee6b88e7de9d8ac497665dabe51dd4e76c data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/perturbations.py
|
| 180 |
+
29768080386d5d50a8b466ca3ad362dca48f7b40343400b00c0e5dea225d05d0 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/visibility.py
|
| 181 |
+
241213586aaeac569e3e6507582153539735b04005d2bd33c7b3548ce99066bb data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/__init__.py
|
| 182 |
+
b3bb99806e3f83246dcfee505a8c7cd95f5b2da1643b1840c98122bc38207c3d data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/nodes.py
|
| 183 |
+
2b6545f90ee6bbb99ac4c0189ee4559ab892cd2ad2fff89cbd7dac5e36589171 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/protocol_graph.py
|
| 184 |
+
8182daba48ab765b8d7e8b4d2b30a5ae4848d6b3bcd63668c7695a22885d0c53 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/router.py
|
| 185 |
+
514e44696c22e99231c983268a613483ffb46ebaa85aaf61fca6808c81faadc8 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/__init__.py
|
| 186 |
+
1b4e7350c4579c8057f79b1a3aa0d132898b7684f427cb0247c5e6f44eb2a605 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/client.py
|
| 187 |
+
098520d7041ac5e163806925a3b4dcda82ce2e36e40068ea2abf25436798a275 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/cost.py
|
| 188 |
+
1db2f28b4098511443e0b255d4242e6ce39e55063a218bc7e0284bda420b79b2 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/structured_output.py
|
| 189 |
+
822aa288d18bb4fce8ceb162dcdf560686c8aa6fb9d88a1f9e17e2d3be870478 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/__init__.py
|
| 190 |
+
8ad1bf3951384e9d72434825c8147cc49af062ecbdc887192246a0f07089baab data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/devil_advocate.py
|
| 191 |
+
ce424e14df88fcea6d9aa3d6d9c724fb3cafc98ed2377e4537522b5d5ef0cd2e data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/evidence_board.py
|
| 192 |
+
9d8d4796f843bdbedc3aaaed407ef4dc497ecc0fcadc8580a0b0d450b001e3f4 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/hierarchical_mdt.py
|
| 193 |
+
a46dd0823e75fd536281159b4e5105ef52cbabf7b0b3af0649762805d77bfa70 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/judge.py
|
| 194 |
+
3f2bf931196601f88bf0e874adf228d3fac0e6d82536013eb5363a44ebf5d969 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/judge_advisor.py
|
| 195 |
+
979876434f83c5aff1cb79be9447f625476b73c1ce9676f3b976fc9accd3936f data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/open_committee.py
|
| 196 |
+
132c6eb858205a1cde40d6fe79a63978c12a9d758f42e85f2b78fa2a9dba5a8f data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/round0.py
|
| 197 |
+
a9d603aa2dd87bd1080638478f9dca910261aa334aff430e43119ec700250c11 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/__init__.py
|
| 198 |
+
9c3099de541902a300dbb9e5d5fcabd54a8c29e3a6a94fff923b2d8f73414fb9 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/anonymous_evidence_board.py
|
| 199 |
+
01b0d987933d0c9dc537c07f8eb9088c72e6095bfe06560c362ebbb46b8a0b1e data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/common.py
|
| 200 |
+
da25bf3bc078e495276c0cf5209ff01b639fd47587a41d5cd75a37de16688478 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/hierarchical_mdt.py
|
| 201 |
+
4998c64f7271bcb80292e77a07a46b8053ed09933e6a6429576aaf332a13438f data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/judge_advisor.py
|
| 202 |
+
621987ec89a0d5de89533c4ae608bd4cf5bce5c1862013957ce54d7f94049469 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/majority_vote.py
|
| 203 |
+
f730e1c8428315f1aa9456af482862ecd0e60f21ca57313058261c921dd057c3 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/medboard_devil.py
|
| 204 |
+
17ff93d835eb4a3c05ae998dd0a9c9cdc4b2d2ecd79a034a2f25e14eb20bf2c0 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/open_committee.py
|
| 205 |
+
3702aab04fd06ecf51b8064ef8ac47a33b3d94252b49335e99da7d6fdedb69bb data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/single.py
|
| 206 |
+
f4bfc445b119a6f65450850baacbb5c84573569714d6ced353af7848bf8fedbf data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/__init__.py
|
| 207 |
+
16df23f9a7274605a75266a0dd1ec6dc0d4af2e073bf9b6924e7a821be907d64 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/check_data.py
|
| 208 |
+
12094f4a0f6495035ca87f28ea146cdd918e9be40b7688c28480041f8b908ce4 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/run_batch.py
|
| 209 |
+
dc3746938f4ca6123d71e00a335f1022d9db8b8a092631dbf9bac8b3a28e4e9a data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/run_case.py
|
| 210 |
+
ab09ee5937cf163c06fe80d18d6d4af6665c0a20cdf82d9f6cb186fd425db258 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/run_sweep.py
|
| 211 |
+
d403bd9b6a20ef0d7e5bb0fc8f33dd8a60ac50617a835002d6e81e6d98c7c9ae data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/__init__.py
|
| 212 |
+
2a31fb311700f4eedf7b3a2c87ffdf81f251cae480079ca57aa21247d5d145e1 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/agent.py
|
| 213 |
+
42771cdbef4bad91f57cba1ca805ad63ae3b1bda1de29b1be1dd074e960ee208 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/case.py
|
| 214 |
+
68300fa5e8f14c42958152d8adaaaa13f1bc5240c60ef6bd1aae65dc4219797d data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/config.py
|
| 215 |
+
428b4b0f76ba43475a6471297dc4350d6934b1af029137bdfdb9868881ce5b7e data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/evidence.py
|
| 216 |
+
47e36570ff84134ca95b9f78e1c68549efaf3260d97ee1e4c00c8aa9eb6a6808 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/result.py
|
| 217 |
+
deead83015f8fa8a05600eacff06c8adf0ed550798d0ff148a43764a314b18e6 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/state.py
|
| 218 |
+
3716f286a04634aff18a51fe64a5b91d318f758bc4e6ac27921c173c538a00ce data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/storage/__init__.py
|
| 219 |
+
7bf92a914f25fc44a5fbd8d01bf519d24b22345d0ebf8847507ec7ba72a6ac43 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/storage/jsonl_logger.py
|
| 220 |
+
55d400d3f6ab5bdf7ed9b4d97df0cf12e1f1cd97f0a4c47c3c95f59d6f9283ac data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/storage/parquet_writer.py
|
| 221 |
+
75ad241729a476a459a79a1db327c4edbfe943a086ca0ca520940ca3c0b788bd data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/pyproject.toml
|
| 222 |
+
381c6da25108d483bb1e12ef9266135c4bd10a04a007dbef6157865e2f97abee data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_analyze_pilot.py
|
| 223 |
+
332ef306b88e34a28da68f0238b0883d74babad5b95f40ded9c4c6ca06144b8c data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_anonymization.py
|
| 224 |
+
2f0384a233bba10277c3667a1990834def5ab5de0e9b01ebc5195c01956be6c1 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_answer_normalization.py
|
| 225 |
+
003395d811aa11c8d9b1cacf85e8cca8a4bec722c57694ff73812bdde4973d91 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_batch_data_loading.py
|
| 226 |
+
e0802cf6219ac7f83ba763cc9e3e7492dcbc073786087d900d66fe3005a73f52 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_checkpoint_resume.py
|
| 227 |
+
dd429da9a8e9244288b35d13eb2fd4becb2ac610ed105ee09fef1b5b1636e4e2 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_data_sanity.py
|
| 228 |
+
f8077f7d0c8462dc1f43166136a1eb28bce77738c4a55d05a52ebcc583add5fc data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_decision_rules.py
|
| 229 |
+
a2e7455b2a516f66909f0e33895296b996f94789b2f4dbb2716bb1e227118d7d data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_medxpertqa_adapter.py
|
| 230 |
+
a2f0424d4c00e8b275ff8ed3d2882481a2a8e300744ffb2538df048a4dc97988 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_metrics.py
|
| 231 |
+
048bcc867d21faa424de93e7d27a8f7b367bb0b33e79fb2fb360e3ce3c7043cb data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_mock_conformity.py
|
| 232 |
+
27d20443aa5e9461fc453ad0762b28f1e72dded860f47a9dcfd3041b81a16b7a data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_perturbations.py
|
| 233 |
+
9c38e20a55a848b97dceb12e3c69290ea3d05d6c64bb7deff513d1a01cce58e9 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_qa_real_smoke.py
|
| 234 |
+
ca6fe370c9af87b95c6948d4ca0d370b0e323f5e2fbe2eedb51e6b00781c9d86 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_real_protocol_smoke_path.py
|
| 235 |
+
fd357bf78a67831caaff8cb1644b14c53af0c1aefd3514c1f73e7c034e353eb7 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_sweep_runner.py
|
| 236 |
+
f1865ad8322d5d6dbf630d4f43fe877e4eedf8d70c91b910108d159adfd3bbe7 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_visibility_masking.py
|
| 237 |
+
5d59773bbd91b3c0b4039beb42a6546377cd7f9b5459fa12fa1bf6fc5b9bad40 data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/uv.lock
|
| 238 |
+
e2f75642e1cd6bd8869b38067b015ffc6fc4ae2704bb215b956c7cc777b470fa data/external/results/formal/early_mas_architecture_motivation/figure_sources/extended_data_fig1_source.csv
|
| 239 |
+
4367bc3e301feb0220643646af920f24c2f449a9e9ab42346d9b6f31c29554da data/external/results/formal/early_mas_architecture_motivation/figure_sources/extended_data_fig1_source.metadata.json
|
| 240 |
+
c02926fbbdda9340e5c2d47e936ec7d95b28f1d59cd7f8008513dde25333db22 data/external/results/formal/early_mas_architecture_motivation/manifests/analysis_ready_manifest.csv
|
| 241 |
+
bb07b6c0fa96bf73e13c8ee37f40bf173b6a6bc1f31f6c20979fc4bebba1a147 data/external/results/formal/early_mas_architecture_motivation/manifests/analysis_ready_manifest.metadata.json
|
| 242 |
+
0a3c22dece8c870c6cab1be0a996bec9a806d72e05ff4f2d580dec966ba91e17 data/external/results/formal/early_mas_architecture_motivation/manifests/code_snapshot_manifest.csv
|
| 243 |
+
01c86cb869c03b75d0d437f1738c22fb3c2c3244a91ad22804feb09b05ba50bc data/external/results/formal/early_mas_architecture_motivation/manifests/code_snapshot_manifest.metadata.json
|
| 244 |
+
2aa848b944feaa5ad9bfef2fd6cb901bd3445709a4a898026dd757a3000fa041 data/external/results/formal/early_mas_architecture_motivation/manifests/private_release_shards.csv
|
| 245 |
+
a89cfa6873a045481d938f447ac109e931f7085c8ee7551ede61de506c716c3e data/external/results/formal/early_mas_architecture_motivation/manifests/private_release_shards.metadata.json
|
| 246 |
+
f6243099b9c19e1596ff428e873827948671760f8c6627b07e2a97f3303b25ef data/external/results/formal/early_mas_architecture_motivation/manifests/source_payload_inventory.csv.gz
|
| 247 |
+
1b7a6ea5972195563cce0ed63b3cbbe1b0e4a7a252c9a7f3653a550c51ecdbad data/external/results/formal/early_mas_architecture_motivation/manifests/source_payload_inventory.csv.metadata.json
|
| 248 |
+
c598f711d960e2655c04324ef3d063d994623d5506cecf0b2b6c1edf6de8c620 data/external/results/formal/early_mas_architecture_motivation/manifests/source_repositories.yaml
|
| 249 |
+
211fd4a1ca34f3d70923aea27ea2e894d9f462cdee49c4cb4a232386e26df922 data/external/results/formal/early_mas_architecture_motivation/private_release/README.md
|
| 250 |
+
5a1c9c8772a6b2bbc36561619c9834ee774f5cffd2610a9134cdaa65d610374a data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_agent_baseline_01.tar.gz
|
| 251 |
+
433c0697ed5fc8e91436095fff5e3477568da6e712beebd182428805f1b25703 data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_agent_fixed6_01.tar.gz
|
| 252 |
+
ed6f2c86ef775849195264307cc1d403daafbdecd65fdb620ddd38e71b943c9b data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_agent_fixed6_02.tar.gz
|
| 253 |
+
d7a4e9874d6be924f4e95c823c1efe1fa4f5c4bb92e938e5f114fb5e9e09b5f1 data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_agent_tuned_01.tar.gz
|
| 254 |
+
45cb17d04e2203a8b47a76f17c45b40d3f0566be2b9826af49c69059d3f2b0bb data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_board_seed42_01.tar.gz
|
| 255 |
+
4cae1b0c30e3b5ad3cfaa78851e50f00673b6403b08d5e6880df55c66f7e6a4a data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_board_seed43_01.tar.gz
|
| 256 |
+
e459f187c56bcc9c9706294a0a4c3da9a36123116f726d4043161e6a0ff43fbe data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_board_seed44_01.tar.gz
|
| 257 |
+
0a3c22dece8c870c6cab1be0a996bec9a806d72e05ff4f2d580dec966ba91e17 data/external/results/formal/early_mas_architecture_motivation/private_release/metadata/code_snapshot_manifest.csv
|
| 258 |
+
2aa848b944feaa5ad9bfef2fd6cb901bd3445709a4a898026dd757a3000fa041 data/external/results/formal/early_mas_architecture_motivation/private_release/metadata/private_release_shards.csv
|
| 259 |
+
0e19cf04a8030280e26eb239651ba47dd5ccb1073835f0cee9566fcc8e214639 data/external/results/formal/early_mas_architecture_motivation/private_release/metadata/private_release_verification.json
|
| 260 |
+
f6243099b9c19e1596ff428e873827948671760f8c6627b07e2a97f3303b25ef data/external/results/formal/early_mas_architecture_motivation/private_release/metadata/source_payload_inventory.csv.gz
|
| 261 |
+
c598f711d960e2655c04324ef3d063d994623d5506cecf0b2b6c1edf6de8c620 data/external/results/formal/early_mas_architecture_motivation/private_release/metadata/source_repositories.yaml
|
| 262 |
+
3ee0abf92de855eacae55e86f8a7e70eb1ad3edf4dc4e993f2602d71a263d88a data/external/results/formal/early_mas_architecture_motivation/source_manifest.csv
|
| 263 |
+
3cfdebaa8320b4465094863354e89f1e1c56b10390351ccd2dd755479a7c1323 data/external/results/formal/early_mas_architecture_motivation/source_manifest.metadata.json
|
| 264 |
1ea792219dde6450744dbb7ee4b6b10d2881f392d3401f3a3ec109ca5d9b9a79 data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_consensus_bypass_summary.csv
|
| 265 |
+
ac2b66e58614ca49a8d6a9bd441b0dcd1e1042f7fd73021f608998d52f32e6a5 data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_round_exit_distribution.csv
|
| 266 |
+
19a98c43b313f0b51a5f6cbac1f9c59ee49f2c9f08c7af5382bf7fba13c191e8 data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_round_exit_distribution.metadata.json
|
| 267 |
+
e222df3b80b0ac56327bdee3fcf73bf310f07b9b7e4bf66fa8d5803b2b46b186 data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_topology_summary.csv
|
| 268 |
+
7795a6b7b35ab48fb594e0ff899c05ad3e27f8e51b479f0d7d2ac4fca8e7afd5 data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_topology_summary.metadata.json
|
| 269 |
dd2119db18e7d83e9e8efd5b945aa75c9ec2022210b43cb1f03d6a36bea5cdf8 data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_benchmark_discussion_controls.csv
|
| 270 |
+
9b9e2b43580ea0ffccc6909b39690cefc0b9b3f0a615b3d7a4eebed4ea68c3ee data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_judge_behavior_summary.csv
|
| 271 |
+
0033e87951b1ef1a25a332acabcba8a1ab11ca0d6d26081a651f892c7cb8673d data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_judge_behavior_summary.metadata.json
|
| 272 |
7dd4aff44b730a7295ab79107164868f884ff9c9b2bd1353b62d9c1a258afe78 data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_mechanism_pilot_summary.csv
|
| 273 |
+
6e870422bd41de783c30a3fae87857f926e341428c9ac1628db73392b58fb8ca data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_oracle_gap_summary.csv
|
| 274 |
+
8385be80a95ddaa805dcea288822a4039535cea154184ea9e78af62c5600b379 data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_oracle_gap_summary.metadata.json
|
| 275 |
+
75dd67cd93d37a80ccac2dd3b3309b35971730e06060f486eef03ea337f1002f data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_bootstrap_ci.csv
|
| 276 |
+
478bacea921a2f73bad6114eb4616cca329ff68bf19534b22870212fd2718ba7 data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_bootstrap_ci.metadata.json
|
| 277 |
+
44f47a20ab6246861bbe20b224492cb040cdc5137c65253bb2eba6dd53844310 data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_cost_accuracy_summary.csv
|
| 278 |
+
6e0bbaf6c4aa5b04821134c1360d6fc61298e0a4ac93bab97bb2f1b5e64cf781 data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_cost_accuracy_summary.metadata.json
|
| 279 |
d871b3cabeb8a103203b5cf66be2e8a34f4d2829652a2498b6b8a4c4c5436c51 data/external/results/formal/five_benchmark_cost_efficiency/README.md
|
| 280 |
f0c8b7ee3fb57c984b9caee42d68f58f126f2faf7b4d661a443cb1354de3227d data/external/results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.log
|
| 281 |
adde7549dc8ef3f9954df91107df5cff37d630b99ab6a2fa4e332a101a5be0a1 data/external/results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.status
|
DATA_MANIFEST.csv
CHANGED
|
@@ -102,18 +102,179 @@ data/external/evidence/formal/prospective_diffusion_validation/sample_plan.csv,a
|
|
| 102 |
data/external/evidence/formal/prospective_diffusion_validation/sample_plan.metadata.json,archive:manuscript/evidence/formal/prospective_diffusion_validation/sample_plan.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",711,0998c2022173143eb97b05445d44b4e7f514ab95ebf603362551f5a3159b54e8
|
| 103 |
data/external/evidence/formal/prospective_diffusion_validation/source_paths.md,archive:manuscript/evidence/formal/prospective_diffusion_validation/source_paths.md,complete formal research artifact,"raw, intermediate, audit, or summary artifact",771,4a06d9e8fbad3d96b29d6274aafd621bd7283f8846a1c53cc269ed4eb0a596fe
|
| 104 |
data/external/results/formal/README.md,archive:results/formal/README.md,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1196,0ef16575b487cfe58527a1dcd2e78fcff1e0e6dda8241985d9f63ced392b895b
|
| 105 |
-
data/external/results/formal/early_mas_architecture_motivation/README.md,archive:results/formal/early_mas_architecture_motivation/README.md,complete formal research artifact,"raw, intermediate, audit, or summary artifact",
|
| 106 |
-
data/external/results/formal/early_mas_architecture_motivation/
|
| 107 |
-
data/external/results/formal/early_mas_architecture_motivation/
|
| 108 |
-
data/external/results/formal/early_mas_architecture_motivation/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_consensus_bypass_summary.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_agent_consensus_bypass_summary.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2600,1ea792219dde6450744dbb7ee4b6b10d2881f392d3401f3a3ec109ca5d9b9a79
|
| 110 |
-
data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_round_exit_distribution.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_agent_round_exit_distribution.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",
|
| 111 |
-
data/external/results/formal/early_mas_architecture_motivation/summaries/
|
|
|
|
|
|
|
| 112 |
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_benchmark_discussion_controls.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_benchmark_discussion_controls.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1850,dd2119db18e7d83e9e8efd5b945aa75c9ec2022210b43cb1f03d6a36bea5cdf8
|
| 113 |
-
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_judge_behavior_summary.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_judge_behavior_summary.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",
|
|
|
|
| 114 |
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_mechanism_pilot_summary.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_mechanism_pilot_summary.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2038,7dd4aff44b730a7295ab79107164868f884ff9c9b2bd1353b62d9c1a258afe78
|
| 115 |
-
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_oracle_gap_summary.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_oracle_gap_summary.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",
|
| 116 |
-
data/external/results/formal/early_mas_architecture_motivation/summaries/
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
data/external/results/formal/five_benchmark_cost_efficiency/README.md,archive:results/formal/five_benchmark_cost_efficiency/README.md,complete formal research artifact,"raw, intermediate, audit, or summary artifact",4758,d871b3cabeb8a103203b5cf66be2e8a34f4d2829652a2498b6b8a4c4c5436c51
|
| 118 |
data/external/results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.log,archive:results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.log,complete formal research artifact,"raw, intermediate, audit, or summary artifact",897196,f0c8b7ee3fb57c984b9caee42d68f58f126f2faf7b4d661a443cb1354de3227d
|
| 119 |
data/external/results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.status,archive:results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.status,complete formal research artifact,"raw, intermediate, audit, or summary artifact",25,adde7549dc8ef3f9954df91107df5cff37d630b99ab6a2fa4e332a101a5be0a1
|
|
|
|
| 102 |
data/external/evidence/formal/prospective_diffusion_validation/sample_plan.metadata.json,archive:manuscript/evidence/formal/prospective_diffusion_validation/sample_plan.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",711,0998c2022173143eb97b05445d44b4e7f514ab95ebf603362551f5a3159b54e8
|
| 103 |
data/external/evidence/formal/prospective_diffusion_validation/source_paths.md,archive:manuscript/evidence/formal/prospective_diffusion_validation/source_paths.md,complete formal research artifact,"raw, intermediate, audit, or summary artifact",771,4a06d9e8fbad3d96b29d6274aafd621bd7283f8846a1c53cc269ed4eb0a596fe
|
| 104 |
data/external/results/formal/README.md,archive:results/formal/README.md,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1196,0ef16575b487cfe58527a1dcd2e78fcff1e0e6dda8241985d9f63ced392b895b
|
| 105 |
+
data/external/results/formal/early_mas_architecture_motivation/README.md,archive:results/formal/early_mas_architecture_motivation/README.md,complete formal research artifact,"raw, intermediate, audit, or summary artifact",4801,21ce9218073aee47e04594de2386e8a3fd0e4a6f48ca5b7c97fd2d13a7beb0d1
|
| 106 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed42.yaml,archive:results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed42.yaml,complete formal research artifact,"raw, intermediate, audit, or summary artifact",674,4aeb065fb9fb7de6521c557b73a7e8aef4cf360736d68e4c6a786ec7ddd6607f
|
| 107 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed43.yaml,archive:results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed43.yaml,complete formal research artifact,"raw, intermediate, audit, or summary artifact",674,7ff5fc11538def5c077309281e4a544897b3d27ba39a33fffd403cd853b9765a
|
| 108 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed44.yaml,archive:results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed44.yaml,complete formal research artifact,"raw, intermediate, audit, or summary artifact",674,e839ac0c62c5a149d1b99d237c7d8c73b98037f1ea9e81931c1c4e998d237d19
|
| 109 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/baseline/all_results.csv,archive:results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/baseline/all_results.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",927658,1d62980ea5a0d6fee72bf94f408a60be27b99995985963395e51e18aeea7d675
|
| 110 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/baseline/summary.json,archive:results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/baseline/summary.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2577,2c0bdec413c879684db2528c4eb37d1cb7f8f366d49aacadedcd5bbc931eef16
|
| 111 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/fixed6/all_results.csv,archive:results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/fixed6/all_results.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",945846,047cab62f4831e320516d14a5554cf3bd7f595004fa4400da84955bd5627675e
|
| 112 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/fixed6/summary.json,archive:results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/fixed6/summary.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2213,c4013cb3ad5255f07555f99deb4b96bb0d2202e260071d4fc0a660f98cb33ebe
|
| 113 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/tuned/all_results.csv,archive:results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/tuned/all_results.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1049233,c8d553568735f5c1bbe3f79ca280312090d448594709bace7fa77a21d15d86a4
|
| 114 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/tuned/summary.json,archive:results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/tuned/summary.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2649,ca4122852b29fb9549c17bb08a22f86358eda2e47d323579dd87c433ff368bbb
|
| 115 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/gain_bottleneck_report.json,archive:results/formal/early_mas_architecture_motivation/analysis_ready/med_board/gain_bottleneck_report.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",19990,054b69cb30f3eac151d40e29cda7e4970705f288b1ca6a4c586ad32e33719acd
|
| 116 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/legacy_3seed_summary.md,archive:results/formal/early_mas_architecture_motivation/analysis_ready/med_board/legacy_3seed_summary.md,complete formal research artifact,"raw, intermediate, audit, or summary artifact",3900,d64229bd5fe5475527b6f5cd6719a3da09ff1bf1e086513d2ae248b6dbe0f15a
|
| 117 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/oracle_trials.csv,archive:results/formal/early_mas_architecture_motivation/analysis_ready/med_board/oracle_trials.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2183571,de275959a071640633f446a344608fb84e57a49294b2ab956179de129f7e1638
|
| 118 |
+
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/protocol_results.csv,archive:results/formal/early_mas_architecture_motivation/analysis_ready/med_board/protocol_results.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2346246,b9d074ef8eb51315ceee82bb63dbc32da4926f42d8b7c04e3d16bdc74c3298e4
|
| 119 |
+
data/external/results/formal/early_mas_architecture_motivation/audits/code_security_gate.md,archive:results/formal/early_mas_architecture_motivation/audits/code_security_gate.md,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1720,d382e8fda4a21bd54aeb7f975b3e2df690f09f5fbb3a73d90ef22145907fcee9
|
| 120 |
+
data/external/results/formal/early_mas_architecture_motivation/audits/code_snapshot_security_scan.json,archive:results/formal/early_mas_architecture_motivation/audits/code_snapshot_security_scan.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",255,62aeedae6f9c813a65a4de47f626196a4a0aa69d8ca6729601fd263192b8f970
|
| 121 |
+
data/external/results/formal/early_mas_architecture_motivation/audits/code_snapshot_security_scan.metadata.json,archive:results/formal/early_mas_architecture_motivation/audits/code_snapshot_security_scan.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",695,c052ffdf2024b5024b78cb61fca415b8e52da72300407b9aac335e31ec1b85c8
|
| 122 |
+
data/external/results/formal/early_mas_architecture_motivation/audits/payload_security_scan.json,archive:results/formal/early_mas_architecture_motivation/audits/payload_security_scan.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",454,d3e82e115abddff2d6151381f0d44e52484471579f9c44629e7000754ad4afe1
|
| 123 |
+
data/external/results/formal/early_mas_architecture_motivation/audits/payload_security_scan.metadata.json,archive:results/formal/early_mas_architecture_motivation/audits/payload_security_scan.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",661,5c018829edb980f1e488e746fc680b1b9254d97f39f50f596e4dbf1fd98e6327
|
| 124 |
+
data/external/results/formal/early_mas_architecture_motivation/audits/private_release_verification.json,archive:results/formal/early_mas_architecture_motivation/audits/private_release_verification.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",444,0e19cf04a8030280e26eb239651ba47dd5ccb1073835f0cee9566fcc8e214639
|
| 125 |
+
data/external/results/formal/early_mas_architecture_motivation/audits/private_release_verification.metadata.json,archive:results/formal/early_mas_architecture_motivation/audits/private_release_verification.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",891,94d6c3ad4f5f9b662a028cf0cec93c56a5b5070c5140f7c1dccbcb459b70d61d
|
| 126 |
+
data/external/results/formal/early_mas_architecture_motivation/audits/provenance_and_qa.md,archive:results/formal/early_mas_architecture_motivation/audits/provenance_and_qa.md,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1273,cea540e96b20147b86dd2791dacf60ba29504d66c55e0300bc975e284420ae22
|
| 127 |
+
data/external/results/formal/early_mas_architecture_motivation/audits/provenance_and_qa.metadata.json,archive:results/formal/early_mas_architecture_motivation/audits/provenance_and_qa.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1931,b0ba46b78b85d8e74fb7e47ed59ec655db9a40284dcc502c6e5eb5095a7e4c6f
|
| 128 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/pyproject.toml,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/pyproject.toml,complete formal research artifact,"raw, intermediate, audit, or summary artifact",255,2a52f22d56d2bccb87573b9e349497ae5f057b8108ffa8558b19f29ec1342ec0
|
| 129 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/pytest.ini,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/pytest.ini,complete formal research artifact,"raw, intermediate, audit, or summary artifact",141,b769e070eb76e69b821b68d31bcf20e850ec74eda6491c664d04184e9ce1691b
|
| 130 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",42,222a8f2c7f63d7e3d4a5165f515111016b552c563a94420adb3fe23cd4e961fd
|
| 131 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/__main__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/__main__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",8683,da3c833adaea421e012e1c6c57c3d919035430ef0a4e30e97e458fc84761788b
|
| 132 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/agent.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/agent.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",17801,428357d3921165e377dfafb5b88dc79899e2ae69a911fe5460a3af6b9e1cae18
|
| 133 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/config.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/config.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1825,f67c2acb0b1bf49b613e977a189c968a6d9d0aa6630d5576753bafc7557a9e70
|
| 134 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/data/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/data/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",33,c0bf0688d03ec00e93160193b9cc13960c99c05b90167e72f12d16b5fd5477b3
|
| 135 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/data/loader.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/data/loader.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1504,247dace738280caae0eea745349fa02eb10f92106147ae6b4d988bc9968fc2ba
|
| 136 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",36,cca37fb69099489cbaed5ba0d9fd71636ece6a14313ce9946d9d33cd562a84f7
|
| 137 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/analyzer.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/analyzer.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",3161,81285eeb497531b129a5ba38d15c8059cf911b3e8e27aa587bb2bbf69c1f7784
|
| 138 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/collector.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/collector.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1225,21096979d1ef7087f23011e71cd2b211b2a9584ee9c18b12d8faa929c71790c1
|
| 139 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/runner.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/runner.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",16046,fd9b29bac159a713df19ebadba81eb52e165447ceb76d197b93b1c2edb91b15f
|
| 140 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",483,8124df00004e9016f10c5b65d01bf3cfaca4f1dc5c63828a6b25f79f406c711f
|
| 141 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/base.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/base.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",311,8de0d4d54010d988ac00f13fafe74a50bd2ecffc5c5a2035a4f6569d0ba11cf3
|
| 142 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/complete.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/complete.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",436,dc160e6f7425e7d4e330feca841a66e0b0f11400c089fe12adeba29338536be8
|
| 143 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/hierarchical.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/hierarchical.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1395,afc8676ed6467bbf02e0c9447f02a4e4f5592d5531815f6d5cd07644f43f9b33
|
| 144 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/ring.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/ring.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",733,cec62f0d9c171296297c03e318177f1cbd6c4bf762a97be519132b73d5f30a23
|
| 145 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/single.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/single.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",293,42daf2df33fc1fb5a191f24c73ef872db98223924b6f382b7ad2580e411ccfbb
|
| 146 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/star.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/star.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",841,b8e41545da7f21f71274d6f4d9ff1c457e5bf6d50f7c40d67ce6529711599871
|
| 147 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/types.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/types.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",3092,f04094d8f37ef9893a9c5398c58dc26e860425eb0fd8f59d4f4a7d2c9f681b5d
|
| 148 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",0,e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
| 149 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/conftest.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/conftest.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1276,2e66206d6609983c96a99e1551fb4d49042e72b4f4ab7baf7fac19308e66d3a9
|
| 150 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_agent.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_agent.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",7609,96255965437e48df0b540ae557f078c9b60d2210deec8567bd7bb844d0550312
|
| 151 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_analyze_ab_details.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_analyze_ab_details.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",9216,73e145e0f3a616a6e961fe203bc4146920b8528fb7edb06f68f526dafe984d47
|
| 152 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_compare_ab.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_compare_ab.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",4352,33215c31b6cb99bd7dd1a844176232c5017aafc74f10212943f89ae91a446ea4
|
| 153 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_grid_search.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_grid_search.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",8101,b83565f4a1d361c89138c484a4d6c3f25e6db7b018772ffa17c11e7928d03395
|
| 154 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_loader.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_loader.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",484,be3f3fc823f899664241bf3a2eedc7ad722a64ce0923d4ae952add613c088ff7
|
| 155 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_random_round_0.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_random_round_0.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",3962,3baa2d91a8a3562741189983bf5082f63883aa5091af75b8121e8fbff4e37065
|
| 156 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_results_analysis.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_results_analysis.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",6494,f4b794a0a34f8fe5de2af3c831fdd758d2dfb77ab7485f95ac11db38875ad22c
|
| 157 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_runner_convergence.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_runner_convergence.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",7110,cbe37aca0c9f15f40d7268255fb3cdfd55aece30c132de8352f7dbec3ac3ee97
|
| 158 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_simulate_thresholds.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_simulate_thresholds.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",7480,e78f60ff58fd2d48e5938bd6cc327fa3af3ea70f22fc2b5aff0ee93d50fb2ba9
|
| 159 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_topologies.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_topologies.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2788,41458fd0ac7fb29bc2458aef6b206ba1337218bc28f279a76197bc18811c42fd
|
| 160 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_types.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_types.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1927,f4ff5a0c8a4282dc6ef813f23c6d8a874d60bf988fca9f41ab46f4dfadd8a67e
|
| 161 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/uv.lock,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/uv.lock,complete formal research artifact,"raw, intermediate, audit, or summary artifact",311193,9277de18ac2cd23db4ecbdaf831e55c6ec640c3756accb856f9c6a9f14d840f2
|
| 162 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/scripts/analyze_gain_bottlenecks.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/scripts/analyze_gain_bottlenecks.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",40503,cd0cf81d44cb6a3985608901310fbc11a1298304dfb7c83b201fd22b1738e531
|
| 163 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/scripts/analyze_multiseed.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/scripts/analyze_multiseed.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",20528,a9813fb57029da6bc64658b7005098e09951a02f349f2ef00133ddabf667ad5c
|
| 164 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/tests/test_analyze_gain_bottlenecks.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/tests/test_analyze_gain_bottlenecks.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",11704,d548941432ec8dcb8d66f80076d0f1f34e3a6a45e9bca7c78d9eec5e899b7783
|
| 165 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/tests/test_analyze_multiseed.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_analysis/tests/test_analyze_multiseed.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",6774,c179f69926f41525c6bf35225dbfb23b7cffcc2fc04166121e12a0f028d41b70
|
| 166 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/configs/experiments/real_llm_full_seed42.yaml,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/configs/experiments/real_llm_full_seed42.yaml,complete formal research artifact,"raw, intermediate, audit, or summary artifact",674,4aeb065fb9fb7de6521c557b73a7e8aef4cf360736d68e4c6a786ec7ddd6607f
|
| 167 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/configs/experiments/real_llm_full_seed43.yaml,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/configs/experiments/real_llm_full_seed43.yaml,complete formal research artifact,"raw, intermediate, audit, or summary artifact",674,7ff5fc11538def5c077309281e4a544897b3d27ba39a33fffd403cd853b9765a
|
| 168 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/configs/experiments/real_llm_full_seed44.yaml,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/configs/experiments/real_llm_full_seed44.yaml,complete formal research artifact,"raw, intermediate, audit, or summary artifact",674,e839ac0c62c5a149d1b99d237c7d8c73b98037f1ea9e81931c1c4e998d237d19
|
| 169 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",31,822aa288d18bb4fce8ceb162dcdf560686c8aa6fb9d88a1f9e17e2d3be870478
|
| 170 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/adapters/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/adapters/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",250,030602002390b85618417a22724e4c8ea40c72b873447936d8bcbeba218443ff
|
| 171 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/adapters/medxpertqa.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/adapters/medxpertqa.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",5970,8bb35ecc88047544edf2d2aac0551a07c0020bf158aa6c3c3c865ef00c7cb039
|
| 172 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",870,a3622474d26a02b4161fbb413be6b2b41f9d7ec0819563bf5845ecf64ae5689b
|
| 173 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/anonymization.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/anonymization.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1080,662a6cc4de2dde928186990176e0f5c6f58f064a9dee81d4ab4f383334fa1f77
|
| 174 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/decision_rules.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/decision_rules.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2420,026be8acd756e50b7178bfb5f5e3879b7f13e7650821c01f5fec25cc912d4781
|
| 175 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/evidence_board.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/evidence_board.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",707,d26b3cd8a7171ea7ef7cdb4c14ae182c6c0bdb59bb6ced165c8dad033cec67d9
|
| 176 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/evidence_extraction.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/evidence_extraction.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1462,5cfa68101eac15b950f73da25b83c8eef86c590dc1aee089323975f6cffa1cb1
|
| 177 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/metrics.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/metrics.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",3042,648565efab2808056e1b40396fc34f586ac7fbf98f22f23a11da4967e4ccc810
|
| 178 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/perturbations.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/perturbations.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2516,9288ebb5c1370e8ccf6f0f058d8451ee6b88e7de9d8ac497665dabe51dd4e76c
|
| 179 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/visibility.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/core/visibility.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2516,29768080386d5d50a8b466ca3ad362dca48f7b40343400b00c0e5dea225d05d0
|
| 180 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",252,241213586aaeac569e3e6507582153539735b04005d2bd33c7b3548ce99066bb
|
| 181 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/nodes.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/nodes.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",4032,b3bb99806e3f83246dcfee505a8c7cd95f5b2da1643b1840c98122bc38207c3d
|
| 182 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/protocol_graph.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/protocol_graph.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2507,2b6545f90ee6bbb99ac4c0189ee4559ab892cd2ad2fff89cbd7dac5e36589171
|
| 183 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/router.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/graphs/router.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1625,8182daba48ab765b8d7e8b4d2b30a5ae4848d6b3bcd63668c7695a22885d0c53
|
| 184 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",353,514e44696c22e99231c983268a613483ffb46ebaa85aaf61fca6808c81faadc8
|
| 185 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/client.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/client.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2839,1b4e7350c4579c8057f79b1a3aa0d132898b7684f427cb0247c5e6f44eb2a605
|
| 186 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/cost.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/cost.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",494,098520d7041ac5e163806925a3b4dcda82ce2e36e40068ea2abf25436798a275
|
| 187 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/structured_output.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/llm/structured_output.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",496,1db2f28b4098511443e0b255d4242e6ce39e55063a218bc7e0284bda420b79b2
|
| 188 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",31,822aa288d18bb4fce8ceb162dcdf560686c8aa6fb9d88a1f9e17e2d3be870478
|
| 189 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/devil_advocate.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/devil_advocate.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",104,8ad1bf3951384e9d72434825c8147cc49af062ecbdc887192246a0f07089baab
|
| 190 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/evidence_board.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/evidence_board.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",91,ce424e14df88fcea6d9aa3d6d9c724fb3cafc98ed2377e4537522b5d5ef0cd2e
|
| 191 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/hierarchical_mdt.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/hierarchical_mdt.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",91,9d8d4796f843bdbedc3aaaed407ef4dc497ecc0fcadc8580a0b0d450b001e3f4
|
| 192 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/judge.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/judge.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",5288,a46dd0823e75fd536281159b4e5105ef52cbabf7b0b3af0649762805d77bfa70
|
| 193 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/judge_advisor.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/judge_advisor.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",83,3f2bf931196601f88bf0e874adf228d3fac0e6d82536013eb5363a44ebf5d969
|
| 194 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/open_committee.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/open_committee.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",4160,979876434f83c5aff1cb79be9447f625476b73c1ce9676f3b976fc9accd3936f
|
| 195 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/round0.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/prompts/round0.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2814,132c6eb858205a1cde40d6fe79a63978c12a9d758f42e85f2b78fa2a9dba5a8f
|
| 196 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",744,a9d603aa2dd87bd1080638478f9dca910261aa334aff430e43119ec700250c11
|
| 197 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/anonymous_evidence_board.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/anonymous_evidence_board.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",475,9c3099de541902a300dbb9e5d5fcabd54a8c29e3a6a94fff923b2d8f73414fb9
|
| 198 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/common.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/common.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",31618,01b0d987933d0c9dc537c07f8eb9088c72e6095bfe06560c362ebbb46b8a0b1e
|
| 199 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/hierarchical_mdt.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/hierarchical_mdt.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",452,da25bf3bc078e495276c0cf5209ff01b639fd47587a41d5cd75a37de16688478
|
| 200 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/judge_advisor.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/judge_advisor.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",443,4998c64f7271bcb80292e77a07a46b8053ed09933e6a6429576aaf332a13438f
|
| 201 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/majority_vote.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/majority_vote.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",443,621987ec89a0d5de89533c4ae608bd4cf5bce5c1862013957ce54d7f94049469
|
| 202 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/medboard_devil.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/medboard_devil.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",455,f730e1c8428315f1aa9456af482862ecd0e60f21ca57313058261c921dd057c3
|
| 203 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/open_committee.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/open_committee.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",446,17ff93d835eb4a3c05ae998dd0a9c9cdc4b2d2ecd79a034a2f25e14eb20bf2c0
|
| 204 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/single.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/protocols/single.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",440,3702aab04fd06ecf51b8064ef8ac47a33b3d94252b49335e99da7d6fdedb69bb
|
| 205 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",39,f4bfc445b119a6f65450850baacbb5c84573569714d6ced353af7848bf8fedbf
|
| 206 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/check_data.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/check_data.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2989,16df23f9a7274605a75266a0dd1ec6dc0d4af2e073bf9b6924e7a821be907d64
|
| 207 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/run_batch.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/run_batch.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",5599,12094f4a0f6495035ca87f28ea146cdd918e9be40b7688c28480041f8b908ce4
|
| 208 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/run_case.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/run_case.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1117,dc3746938f4ca6123d71e00a335f1022d9db8b8a092631dbf9bac8b3a28e4e9a
|
| 209 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/run_sweep.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/runners/run_sweep.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",4679,ab09ee5937cf163c06fe80d18d6d4af6665c0a20cdf82d9f6cb186fd425db258
|
| 210 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",529,d403bd9b6a20ef0d7e5bb0fc8f33dd8a60ac50617a835002d6e81e6d98c7c9ae
|
| 211 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/agent.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/agent.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",766,2a31fb311700f4eedf7b3a2c87ffdf81f251cae480079ca57aa21247d5d145e1
|
| 212 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/case.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/case.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",303,42771cdbef4bad91f57cba1ca805ad63ae3b1bda1de29b1be1dd074e960ee208
|
| 213 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/config.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/config.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2551,68300fa5e8f14c42958152d8adaaaa13f1bc5240c60ef6bd1aae65dc4219797d
|
| 214 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/evidence.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/evidence.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",625,428b4b0f76ba43475a6471297dc4350d6934b1af029137bdfdb9868881ce5b7e
|
| 215 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/result.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/result.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1178,47e36570ff84134ca95b9f78e1c68549efaf3260d97ee1e4c00c8aa9eb6a6808
|
| 216 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/state.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/schemas/state.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",825,deead83015f8fa8a05600eacff06c8adf0ed550798d0ff148a43764a314b18e6
|
| 217 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/storage/__init__.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/storage/__init__.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",205,3716f286a04634aff18a51fe64a5b91d318f758bc4e6ac27921c173c538a00ce
|
| 218 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/storage/jsonl_logger.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/storage/jsonl_logger.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1163,7bf92a914f25fc44a5fbd8d01bf519d24b22345d0ebf8847507ec7ba72a6ac43
|
| 219 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/storage/parquet_writer.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/medboard/storage/parquet_writer.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1159,55d400d3f6ab5bdf7ed9b4d97df0cf12e1f1cd97f0a4c47c3c95f59d6f9283ac
|
| 220 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/pyproject.toml,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/pyproject.toml,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1012,75ad241729a476a459a79a1db327c4edbfe943a086ca0ca520940ca3c0b788bd
|
| 221 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_analyze_pilot.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_analyze_pilot.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",4834,381c6da25108d483bb1e12ef9266135c4bd10a04a007dbef6157865e2f97abee
|
| 222 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_anonymization.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_anonymization.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1014,332ef306b88e34a28da68f0238b0883d74babad5b95f40ded9c4c6ca06144b8c
|
| 223 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_answer_normalization.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_answer_normalization.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2467,2f0384a233bba10277c3667a1990834def5ab5de0e9b01ebc5195c01956be6c1
|
| 224 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_batch_data_loading.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_batch_data_loading.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",3566,003395d811aa11c8d9b1cacf85e8cca8a4bec722c57694ff73812bdde4973d91
|
| 225 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_checkpoint_resume.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_checkpoint_resume.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",6763,e0802cf6219ac7f83ba763cc9e3e7492dcbc073786087d900d66fe3005a73f52
|
| 226 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_data_sanity.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_data_sanity.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2915,dd429da9a8e9244288b35d13eb2fd4becb2ac610ed105ee09fef1b5b1636e4e2
|
| 227 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_decision_rules.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_decision_rules.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",3784,f8077f7d0c8462dc1f43166136a1eb28bce77738c4a55d05a52ebcc583add5fc
|
| 228 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_medxpertqa_adapter.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_medxpertqa_adapter.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",5263,a2e7455b2a516f66909f0e33895296b996f94789b2f4dbb2716bb1e227118d7d
|
| 229 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_metrics.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_metrics.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",7338,a2f0424d4c00e8b275ff8ed3d2882481a2a8e300744ffb2538df048a4dc97988
|
| 230 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_mock_conformity.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_mock_conformity.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",4000,048bcc867d21faa424de93e7d27a8f7b367bb0b33e79fb2fb360e3ce3c7043cb
|
| 231 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_perturbations.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_perturbations.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2657,27d20443aa5e9461fc453ad0762b28f1e72dded860f47a9dcfd3041b81a16b7a
|
| 232 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_qa_real_smoke.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_qa_real_smoke.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",4076,9c38e20a55a848b97dceb12e3c69290ea3d05d6c64bb7deff513d1a01cce58e9
|
| 233 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_real_protocol_smoke_path.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_real_protocol_smoke_path.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",19221,ca6fe370c9af87b95c6948d4ca0d370b0e323f5e2fbe2eedb51e6b00781c9d86
|
| 234 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_sweep_runner.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_sweep_runner.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",6144,fd357bf78a67831caaff8cb1644b14c53af0c1aefd3514c1f73e7c034e353eb7
|
| 235 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_visibility_masking.py,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/tests/test_visibility_masking.py,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1054,f1865ad8322d5d6dbf630d4f43fe877e4eedf8d70c91b910108d159adfd3bbe7
|
| 236 |
+
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/uv.lock,archive:results/formal/early_mas_architecture_motivation/code_snapshot/med_board_execution/uv.lock,complete formal research artifact,"raw, intermediate, audit, or summary artifact",644766,5d59773bbd91b3c0b4039beb42a6546377cd7f9b5459fa12fa1bf6fc5b9bad40
|
| 237 |
+
data/external/results/formal/early_mas_architecture_motivation/figure_sources/extended_data_fig1_source.csv,archive:results/formal/early_mas_architecture_motivation/figure_sources/extended_data_fig1_source.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",23993,e2f75642e1cd6bd8869b38067b015ffc6fc4ae2704bb215b956c7cc777b470fa
|
| 238 |
+
data/external/results/formal/early_mas_architecture_motivation/figure_sources/extended_data_fig1_source.metadata.json,archive:results/formal/early_mas_architecture_motivation/figure_sources/extended_data_fig1_source.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1931,4367bc3e301feb0220643646af920f24c2f449a9e9ab42346d9b6f31c29554da
|
| 239 |
+
data/external/results/formal/early_mas_architecture_motivation/manifests/analysis_ready_manifest.csv,archive:results/formal/early_mas_architecture_motivation/manifests/analysis_ready_manifest.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",8785,c02926fbbdda9340e5c2d47e936ec7d95b28f1d59cd7f8008513dde25333db22
|
| 240 |
+
data/external/results/formal/early_mas_architecture_motivation/manifests/analysis_ready_manifest.metadata.json,archive:results/formal/early_mas_architecture_motivation/manifests/analysis_ready_manifest.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",621,bb07b6c0fa96bf73e13c8ee37f40bf173b6a6bc1f31f6c20979fc4bebba1a147
|
| 241 |
+
data/external/results/formal/early_mas_architecture_motivation/manifests/code_snapshot_manifest.csv,archive:results/formal/early_mas_architecture_motivation/manifests/code_snapshot_manifest.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",35049,0a3c22dece8c870c6cab1be0a996bec9a806d72e05ff4f2d580dec966ba91e17
|
| 242 |
+
data/external/results/formal/early_mas_architecture_motivation/manifests/code_snapshot_manifest.metadata.json,archive:results/formal/early_mas_architecture_motivation/manifests/code_snapshot_manifest.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",693,01c86cb869c03b75d0d437f1738c22fb3c2c3244a91ad22804feb09b05ba50bc
|
| 243 |
+
data/external/results/formal/early_mas_architecture_motivation/manifests/private_release_shards.csv,archive:results/formal/early_mas_architecture_motivation/manifests/private_release_shards.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1206,2aa848b944feaa5ad9bfef2fd6cb901bd3445709a4a898026dd757a3000fa041
|
| 244 |
+
data/external/results/formal/early_mas_architecture_motivation/manifests/private_release_shards.metadata.json,archive:results/formal/early_mas_architecture_motivation/manifests/private_release_shards.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",889,a89cfa6873a045481d938f447ac109e931f7085c8ee7551ede61de506c716c3e
|
| 245 |
+
data/external/results/formal/early_mas_architecture_motivation/manifests/source_payload_inventory.csv.gz,archive:results/formal/early_mas_architecture_motivation/manifests/source_payload_inventory.csv.gz,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2389352,f6243099b9c19e1596ff428e873827948671760f8c6627b07e2a97f3303b25ef
|
| 246 |
+
data/external/results/formal/early_mas_architecture_motivation/manifests/source_payload_inventory.csv.metadata.json,archive:results/formal/early_mas_architecture_motivation/manifests/source_payload_inventory.csv.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",659,1b7a6ea5972195563cce0ed63b3cbbe1b0e4a7a252c9a7f3653a550c51ecdbad
|
| 247 |
+
data/external/results/formal/early_mas_architecture_motivation/manifests/source_repositories.yaml,archive:results/formal/early_mas_architecture_motivation/manifests/source_repositories.yaml,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1468,c598f711d960e2655c04324ef3d063d994623d5506cecf0b2b6c1edf6de8c620
|
| 248 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/README.md,archive:results/tmp/medical_mas_private_release/README.md,controlled medical MAS raw archive,private deterministic archive shard or release metadata,863,211fd4a1ca34f3d70923aea27ea2e894d9f462cdee49c4cb4a232386e26df922
|
| 249 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_agent_baseline_01.tar.gz,archive:results/tmp/medical_mas_private_release/data/medical_mas_med_agent_baseline_01.tar.gz,controlled medical MAS raw archive,private deterministic archive shard or release metadata,11072544,5a1c9c8772a6b2bbc36561619c9834ee774f5cffd2610a9134cdaa65d610374a
|
| 250 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_agent_fixed6_01.tar.gz,archive:results/tmp/medical_mas_private_release/data/medical_mas_med_agent_fixed6_01.tar.gz,controlled medical MAS raw archive,private deterministic archive shard or release metadata,26893988,433c0697ed5fc8e91436095fff5e3477568da6e712beebd182428805f1b25703
|
| 251 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_agent_fixed6_02.tar.gz,archive:results/tmp/medical_mas_private_release/data/medical_mas_med_agent_fixed6_02.tar.gz,controlled medical MAS raw archive,private deterministic archive shard or release metadata,9021076,ed6f2c86ef775849195264307cc1d403daafbdecd65fdb620ddd38e71b943c9b
|
| 252 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_agent_tuned_01.tar.gz,archive:results/tmp/medical_mas_private_release/data/medical_mas_med_agent_tuned_01.tar.gz,controlled medical MAS raw archive,private deterministic archive shard or release metadata,18819201,d7a4e9874d6be924f4e95c823c1efe1fa4f5c4bb92e938e5f114fb5e9e09b5f1
|
| 253 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_board_seed42_01.tar.gz,archive:results/tmp/medical_mas_private_release/data/medical_mas_med_board_seed42_01.tar.gz,controlled medical MAS raw archive,private deterministic archive shard or release metadata,19078912,45cb17d04e2203a8b47a76f17c45b40d3f0566be2b9826af49c69059d3f2b0bb
|
| 254 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_board_seed43_01.tar.gz,archive:results/tmp/medical_mas_private_release/data/medical_mas_med_board_seed43_01.tar.gz,controlled medical MAS raw archive,private deterministic archive shard or release metadata,18989294,4cae1b0c30e3b5ad3cfaa78851e50f00673b6403b08d5e6880df55c66f7e6a4a
|
| 255 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/data/medical_mas_med_board_seed44_01.tar.gz,archive:results/tmp/medical_mas_private_release/data/medical_mas_med_board_seed44_01.tar.gz,controlled medical MAS raw archive,private deterministic archive shard or release metadata,18940738,e459f187c56bcc9c9706294a0a4c3da9a36123116f726d4043161e6a0ff43fbe
|
| 256 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/metadata/code_snapshot_manifest.csv,archive:results/tmp/medical_mas_private_release/metadata/code_snapshot_manifest.csv,controlled medical MAS raw archive,private deterministic archive shard or release metadata,35049,0a3c22dece8c870c6cab1be0a996bec9a806d72e05ff4f2d580dec966ba91e17
|
| 257 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/metadata/private_release_shards.csv,archive:results/tmp/medical_mas_private_release/metadata/private_release_shards.csv,controlled medical MAS raw archive,private deterministic archive shard or release metadata,1206,2aa848b944feaa5ad9bfef2fd6cb901bd3445709a4a898026dd757a3000fa041
|
| 258 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/metadata/private_release_verification.json,archive:results/tmp/medical_mas_private_release/metadata/private_release_verification.json,controlled medical MAS raw archive,private deterministic archive shard or release metadata,444,0e19cf04a8030280e26eb239651ba47dd5ccb1073835f0cee9566fcc8e214639
|
| 259 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/metadata/source_payload_inventory.csv.gz,archive:results/tmp/medical_mas_private_release/metadata/source_payload_inventory.csv.gz,controlled medical MAS raw archive,private deterministic archive shard or release metadata,2389352,f6243099b9c19e1596ff428e873827948671760f8c6627b07e2a97f3303b25ef
|
| 260 |
+
data/external/results/formal/early_mas_architecture_motivation/private_release/metadata/source_repositories.yaml,archive:results/tmp/medical_mas_private_release/metadata/source_repositories.yaml,controlled medical MAS raw archive,private deterministic archive shard or release metadata,1468,c598f711d960e2655c04324ef3d063d994623d5506cecf0b2b6c1edf6de8c620
|
| 261 |
+
data/external/results/formal/early_mas_architecture_motivation/source_manifest.csv,archive:results/formal/early_mas_architecture_motivation/source_manifest.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2406,3ee0abf92de855eacae55e86f8a7e70eb1ad3edf4dc4e993f2602d71a263d88a
|
| 262 |
+
data/external/results/formal/early_mas_architecture_motivation/source_manifest.metadata.json,archive:results/formal/early_mas_architecture_motivation/source_manifest.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1931,3cfdebaa8320b4465094863354e89f1e1c56b10390351ccd2dd755479a7c1323
|
| 263 |
data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_consensus_bypass_summary.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_agent_consensus_bypass_summary.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2600,1ea792219dde6450744dbb7ee4b6b10d2881f392d3401f3a3ec109ca5d9b9a79
|
| 264 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_round_exit_distribution.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_agent_round_exit_distribution.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",12491,ac2b66e58614ca49a8d6a9bd441b0dcd1e1042f7fd73021f608998d52f32e6a5
|
| 265 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_round_exit_distribution.metadata.json,archive:results/formal/early_mas_architecture_motivation/summaries/med_agent_round_exit_distribution.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1931,19a98c43b313f0b51a5f6cbac1f9c59ee49f2c9f08c7af5382bf7fba13c191e8
|
| 266 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_topology_summary.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_agent_topology_summary.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",3795,e222df3b80b0ac56327bdee3fcf73bf310f07b9b7e4bf66fa8d5803b2b46b186
|
| 267 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_agent_topology_summary.metadata.json,archive:results/formal/early_mas_architecture_motivation/summaries/med_agent_topology_summary.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1931,7795a6b7b35ab48fb594e0ff899c05ad3e27f8e51b479f0d7d2ac4fca8e7afd5
|
| 268 |
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_benchmark_discussion_controls.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_benchmark_discussion_controls.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1850,dd2119db18e7d83e9e8efd5b945aa75c9ec2022210b43cb1f03d6a36bea5cdf8
|
| 269 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_judge_behavior_summary.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_judge_behavior_summary.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",776,9b9e2b43580ea0ffccc6909b39690cefc0b9b3f0a615b3d7a4eebed4ea68c3ee
|
| 270 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_judge_behavior_summary.metadata.json,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_judge_behavior_summary.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1931,0033e87951b1ef1a25a332acabcba8a1ab11ca0d6d26081a651f892c7cb8673d
|
| 271 |
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_mechanism_pilot_summary.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_mechanism_pilot_summary.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",2038,7dd4aff44b730a7295ab79107164868f884ff9c9b2bd1353b62d9c1a258afe78
|
| 272 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_oracle_gap_summary.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_oracle_gap_summary.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",780,6e870422bd41de783c30a3fae87857f926e341428c9ac1628db73392b58fb8ca
|
| 273 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_oracle_gap_summary.metadata.json,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_oracle_gap_summary.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1931,8385be80a95ddaa805dcea288822a4039535cea154184ea9e78af62c5600b379
|
| 274 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_bootstrap_ci.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_bootstrap_ci.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",414,75dd67cd93d37a80ccac2dd3b3309b35971730e06060f486eef03ea337f1002f
|
| 275 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_bootstrap_ci.metadata.json,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_bootstrap_ci.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1931,478bacea921a2f73bad6114eb4616cca329ff68bf19534b22870212fd2718ba7
|
| 276 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_cost_accuracy_summary.csv,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_cost_accuracy_summary.csv,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1005,44f47a20ab6246861bbe20b224492cb040cdc5137c65253bb2eba6dd53844310
|
| 277 |
+
data/external/results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_cost_accuracy_summary.metadata.json,archive:results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_cost_accuracy_summary.metadata.json,complete formal research artifact,"raw, intermediate, audit, or summary artifact",1929,6e0bbaf6c4aa5b04821134c1360d6fc61298e0a4ac93bab97bb2f1b5e64cf781
|
| 278 |
data/external/results/formal/five_benchmark_cost_efficiency/README.md,archive:results/formal/five_benchmark_cost_efficiency/README.md,complete formal research artifact,"raw, intermediate, audit, or summary artifact",4758,d871b3cabeb8a103203b5cf66be2e8a34f4d2829652a2498b6b8a4c4c5436c51
|
| 279 |
data/external/results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.log,archive:results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.log,complete formal research artifact,"raw, intermediate, audit, or summary artifact",897196,f0c8b7ee3fb57c984b9caee42d68f58f126f2faf7b4d661a443cb1354de3227d
|
| 280 |
data/external/results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.status,archive:results/formal/five_benchmark_cost_efficiency/archive/source_inputs/mimo_k16_topup_bank/mimo_k16_topup.launchd.status,complete formal research artifact,"raw, intermediate, audit, or summary artifact",25,adde7549dc8ef3f9954df91107df5cff37d630b99ab6a2fa4e332a101a5be0a1
|
RELEASE_METADATA.json
CHANGED
|
@@ -2,12 +2,17 @@
|
|
| 2 |
"contains_benchmark_material": true,
|
| 3 |
"contains_candidate_text": true,
|
| 4 |
"contains_rationales": true,
|
| 5 |
-
"created_utc": "2026-
|
| 6 |
"dataset_repository": "Biogod/mas_reasoning",
|
| 7 |
"excluded_file_count": 2,
|
| 8 |
"expected_repository_visibility": "private",
|
| 9 |
-
"file_count":
|
| 10 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
"release_scope": "full_private",
|
| 12 |
"source_symlink_count": 242
|
| 13 |
}
|
|
|
|
| 2 |
"contains_benchmark_material": true,
|
| 3 |
"contains_candidate_text": true,
|
| 4 |
"contains_rationales": true,
|
| 5 |
+
"created_utc": "2026-08-24T09:39:37+00:00",
|
| 6 |
"dataset_repository": "Biogod/mas_reasoning",
|
| 7 |
"excluded_file_count": 2,
|
| 8 |
"expected_repository_visibility": "private",
|
| 9 |
+
"file_count": 1568,
|
| 10 |
+
"medical_mas_increment": {
|
| 11 |
+
"base_revision": "963debcaed4fc46cc7de50f0507ecb296d404a79",
|
| 12 |
+
"remote_prefix": "data/external/results/formal/early_mas_architecture_motivation",
|
| 13 |
+
"uploaded_payload_files": 170
|
| 14 |
+
},
|
| 15 |
+
"payload_bytes": 12953259548,
|
| 16 |
"release_scope": "full_private",
|
| 17 |
"source_symlink_count": 242
|
| 18 |
}
|
data/external/results/formal/early_mas_architecture_motivation/README.md
CHANGED
|
@@ -7,21 +7,57 @@ from black-box communication architectures to a measurable selection-bottleneck
|
|
| 7 |
## Scope
|
| 8 |
|
| 9 |
- `med-agent` topology experiments compare star, complete, ring and hierarchical communication topologies on MedXpertQA-style medical diagnosis tasks.
|
| 10 |
-
- `med_board` protocol experiments compare single-agent, majority vote, open committee and anonymous evidence board protocols
|
| 11 |
- The central interpretation is historical motivation: more communication and richer architectures produced modest gains at substantial token cost, while oracle readouts showed that correct traces were often already present but not reliably selected.
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
## Generated Files
|
| 14 |
|
| 15 |
- `summaries/med_agent_topology_summary.csv`: topology-level accuracy, round and token summaries for baseline, tuned and fixed-six-round runs.
|
| 16 |
- `summaries/med_agent_consensus_bypass_summary.csv`: one-round exits and weighted-majority behavior in the topology experiments.
|
| 17 |
- `summaries/med_agent_round_exit_distribution.csv`: exact stopping-round counts and shares by topology and stopping condition.
|
| 18 |
- `summaries/med_board_protocol_cost_accuracy_summary.csv`: full 3-seed protocol accuracy and token-cost summary.
|
|
|
|
| 19 |
- `summaries/med_board_benchmark_discussion_controls.csv`: MMLU-Pro and GPQA discussion-vs-majority paired controls.
|
| 20 |
- `summaries/med_board_oracle_gap_summary.csv`: round-0 oracle versus final accuracy decomposition.
|
| 21 |
- `summaries/med_board_judge_behavior_summary.csv`: follow-majority/follow-minority behavior, including majority-wrong/minority-correct cases.
|
| 22 |
- `summaries/med_board_mechanism_pilot_summary.csv`: mechanism-pilot condition summaries.
|
| 23 |
- `figure_sources/extended_data_fig1_source.csv`: direct source table used by Extended Data Fig. 1.
|
| 24 |
-
- `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
## Interpretation Boundary
|
| 27 |
|
|
|
|
| 7 |
## Scope
|
| 8 |
|
| 9 |
- `med-agent` topology experiments compare star, complete, ring and hierarchical communication topologies on MedXpertQA-style medical diagnosis tasks.
|
| 10 |
+
- `med_board` protocol experiments compare single-agent, majority vote, open committee and anonymous evidence board protocols.
|
| 11 |
- The central interpretation is historical motivation: more communication and richer architectures produced modest gains at substantial token cost, while oracle readouts showed that correct traces were often already present but not reliably selected.
|
| 12 |
|
| 13 |
+
## Reproduction
|
| 14 |
+
|
| 15 |
+
The formal analysis runs only from repository-local, question-text-free inputs:
|
| 16 |
+
|
| 17 |
+
```bash
|
| 18 |
+
python scripts/run_analysis.py --config configs/analyses/early_mas_architecture_motivation.yaml
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
The one-time source freeze and analysis-ready import require the protected archive root explicitly:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
MEDICAL_MAS_SOURCE_ROOT=/path/to/med_repos_20260604 \
|
| 25 |
+
python scripts/run_analysis.py --config configs/analyses/medical_mas_source_inventory.yaml
|
| 26 |
+
MEDICAL_MAS_SOURCE_ROOT=/path/to/med_repos_20260604 \
|
| 27 |
+
python scripts/run_analysis.py --config configs/analyses/medical_mas_analysis_ready_import.yaml
|
| 28 |
+
MEDICAL_MAS_SOURCE_ROOT=/path/to/med_repos_20260604 \
|
| 29 |
+
python scripts/run_analysis.py --config configs/analyses/medical_mas_code_snapshot.yaml
|
| 30 |
+
MEDICAL_MAS_SOURCE_ROOT=/path/to/med_repos_20260604 \
|
| 31 |
+
python scripts/run_analysis.py --config configs/analyses/medical_mas_private_release.yaml
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
No source path is hard-coded in the implementation or formal outputs.
|
| 35 |
+
|
| 36 |
## Generated Files
|
| 37 |
|
| 38 |
- `summaries/med_agent_topology_summary.csv`: topology-level accuracy, round and token summaries for baseline, tuned and fixed-six-round runs.
|
| 39 |
- `summaries/med_agent_consensus_bypass_summary.csv`: one-round exits and weighted-majority behavior in the topology experiments.
|
| 40 |
- `summaries/med_agent_round_exit_distribution.csv`: exact stopping-round counts and shares by topology and stopping condition.
|
| 41 |
- `summaries/med_board_protocol_cost_accuracy_summary.csv`: full 3-seed protocol accuracy and token-cost summary.
|
| 42 |
+
- `summaries/med_board_protocol_bootstrap_ci.csv`: paired question-cluster confidence intervals for the two manuscript comparisons.
|
| 43 |
- `summaries/med_board_benchmark_discussion_controls.csv`: MMLU-Pro and GPQA discussion-vs-majority paired controls.
|
| 44 |
- `summaries/med_board_oracle_gap_summary.csv`: round-0 oracle versus final accuracy decomposition.
|
| 45 |
- `summaries/med_board_judge_behavior_summary.csv`: follow-majority/follow-minority behavior, including majority-wrong/minority-correct cases.
|
| 46 |
- `summaries/med_board_mechanism_pilot_summary.csv`: mechanism-pilot condition summaries.
|
| 47 |
- `figure_sources/extended_data_fig1_source.csv`: direct source table used by Extended Data Fig. 1.
|
| 48 |
+
- `analysis_ready/`: compact trial tables and execution configs needed for numerical reproduction; it contains no benchmark question text or raw model rationales.
|
| 49 |
+
- `manifests/analysis_ready_manifest.csv`: source and destination hashes for every imported or normalized analysis input.
|
| 50 |
+
- `manifests/source_payload_inventory.csv.gz`: hashes and release paths for the full private raw payload.
|
| 51 |
+
- `manifests/code_snapshot_manifest.csv`: source revisions, source/output hashes and transformations for the sanitized historical code snapshot.
|
| 52 |
+
- `manifests/private_release_shards.csv`: deterministic private-release shard hashes, member counts and compressed sizes.
|
| 53 |
+
- `code_snapshot/`: the sanitized `med-agent` reconstruction and byte-identical `med_board` Git snapshots.
|
| 54 |
+
- `audits/provenance_and_qa.md`: row counts, headline checks and interpretation limits.
|
| 55 |
+
- `audits/code_security_gate.md`: the passed payload and code-snapshot security gates.
|
| 56 |
+
- `audits/private_release_verification.json`: complete member-hash and repeat-build verification for the Git-ignored private payload.
|
| 57 |
+
|
| 58 |
+
The raw release shards are written to the Git-ignored `results/tmp/medical_mas_private_release/` directory. They must not be committed to this repository.
|
| 59 |
+
|
| 60 |
+
The cross-benchmark discussion-control and mechanism-pilot summaries are retained as secondary historical artifacts. They are not inputs to the manuscript-facing analysis and do not expand the private raw-data migration scope.
|
| 61 |
|
| 62 |
## Interpretation Boundary
|
| 63 |
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed42.yaml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment:
|
| 2 |
+
name: real_llm_full_seed42
|
| 3 |
+
n_cases: 2450
|
| 4 |
+
seed: 42
|
| 5 |
+
protocol:
|
| 6 |
+
name: single_agent
|
| 7 |
+
protocols:
|
| 8 |
+
- single_agent
|
| 9 |
+
- majority_vote
|
| 10 |
+
- open_committee
|
| 11 |
+
- anonymous_evidence_board
|
| 12 |
+
n_agents: 5
|
| 13 |
+
max_rounds: 2
|
| 14 |
+
visibility_mode: answer_rationale
|
| 15 |
+
anonymous: false
|
| 16 |
+
answer_masking: false
|
| 17 |
+
use_devil_advocate: false
|
| 18 |
+
model:
|
| 19 |
+
provider: openai
|
| 20 |
+
model: openai/deepseek-v4-flash-free
|
| 21 |
+
api_base: http://127.0.0.1:8000/v1
|
| 22 |
+
api_key_env: MYAPI_DUMMY_KEY
|
| 23 |
+
temperature: 0.0
|
| 24 |
+
max_tokens: 60000
|
| 25 |
+
json_mode: true
|
| 26 |
+
runtime:
|
| 27 |
+
mock_llm: false
|
| 28 |
+
concurrency: 200
|
| 29 |
+
data:
|
| 30 |
+
source: medxpertqa_jsonl
|
| 31 |
+
path: data/medxpertqa_text_test.jsonl
|
| 32 |
+
output:
|
| 33 |
+
root_dir: runs
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed43.yaml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment:
|
| 2 |
+
name: real_llm_full_seed43
|
| 3 |
+
n_cases: 2450
|
| 4 |
+
seed: 43
|
| 5 |
+
protocol:
|
| 6 |
+
name: single_agent
|
| 7 |
+
protocols:
|
| 8 |
+
- single_agent
|
| 9 |
+
- majority_vote
|
| 10 |
+
- open_committee
|
| 11 |
+
- anonymous_evidence_board
|
| 12 |
+
n_agents: 5
|
| 13 |
+
max_rounds: 2
|
| 14 |
+
visibility_mode: answer_rationale
|
| 15 |
+
anonymous: false
|
| 16 |
+
answer_masking: false
|
| 17 |
+
use_devil_advocate: false
|
| 18 |
+
model:
|
| 19 |
+
provider: openai
|
| 20 |
+
model: openai/deepseek-v4-flash-free
|
| 21 |
+
api_base: http://127.0.0.1:8000/v1
|
| 22 |
+
api_key_env: MYAPI_DUMMY_KEY
|
| 23 |
+
temperature: 0.0
|
| 24 |
+
max_tokens: 60000
|
| 25 |
+
json_mode: true
|
| 26 |
+
runtime:
|
| 27 |
+
mock_llm: false
|
| 28 |
+
concurrency: 200
|
| 29 |
+
data:
|
| 30 |
+
source: medxpertqa_jsonl
|
| 31 |
+
path: data/medxpertqa_text_test.jsonl
|
| 32 |
+
output:
|
| 33 |
+
root_dir: runs
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/configs/med_board/real_llm_full_seed44.yaml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment:
|
| 2 |
+
name: real_llm_full_seed44
|
| 3 |
+
n_cases: 2450
|
| 4 |
+
seed: 44
|
| 5 |
+
protocol:
|
| 6 |
+
name: single_agent
|
| 7 |
+
protocols:
|
| 8 |
+
- single_agent
|
| 9 |
+
- majority_vote
|
| 10 |
+
- open_committee
|
| 11 |
+
- anonymous_evidence_board
|
| 12 |
+
n_agents: 5
|
| 13 |
+
max_rounds: 2
|
| 14 |
+
visibility_mode: answer_rationale
|
| 15 |
+
anonymous: false
|
| 16 |
+
answer_masking: false
|
| 17 |
+
use_devil_advocate: false
|
| 18 |
+
model:
|
| 19 |
+
provider: openai
|
| 20 |
+
model: openai/deepseek-v4-flash-free
|
| 21 |
+
api_base: http://127.0.0.1:8000/v1
|
| 22 |
+
api_key_env: MYAPI_DUMMY_KEY
|
| 23 |
+
temperature: 0.0
|
| 24 |
+
max_tokens: 60000
|
| 25 |
+
json_mode: true
|
| 26 |
+
runtime:
|
| 27 |
+
mock_llm: false
|
| 28 |
+
concurrency: 200
|
| 29 |
+
data:
|
| 30 |
+
source: medxpertqa_jsonl
|
| 31 |
+
path: data/medxpertqa_text_test.jsonl
|
| 32 |
+
output:
|
| 33 |
+
root_dir: runs
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/baseline/all_results.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/baseline/summary.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"single": {
|
| 3 |
+
"n_cases": 3150,
|
| 4 |
+
"n_errors": 0,
|
| 5 |
+
"accuracy_mean": 0.4523809523809524,
|
| 6 |
+
"accuracy_std": 0.4978062841037845,
|
| 7 |
+
"rounds_mean": 0.0,
|
| 8 |
+
"rounds_std": 0.0,
|
| 9 |
+
"tokens_mean": 5217.271428571428,
|
| 10 |
+
"tokens_std": 4905.742235504171,
|
| 11 |
+
"confidence_mean": 0.7631873015873015,
|
| 12 |
+
"confidence_std": 0.18517969909391874,
|
| 13 |
+
"convergence_rate": 1.0,
|
| 14 |
+
"convergence_type_counts": {
|
| 15 |
+
"single": 3150
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"star": {
|
| 19 |
+
"n_cases": 3150,
|
| 20 |
+
"n_errors": 0,
|
| 21 |
+
"accuracy_mean": 0.4726984126984127,
|
| 22 |
+
"accuracy_std": 0.4993333324651835,
|
| 23 |
+
"rounds_mean": 1.126984126984127,
|
| 24 |
+
"rounds_std": 0.5870428903401118,
|
| 25 |
+
"tokens_mean": 43825.049523809525,
|
| 26 |
+
"tokens_std": 42008.32999775721,
|
| 27 |
+
"confidence_mean": 0.8631968253968254,
|
| 28 |
+
"confidence_std": 0.07059756726047633,
|
| 29 |
+
"convergence_rate": 0.9990476190476191,
|
| 30 |
+
"convergence_type_counts": {
|
| 31 |
+
"unanimous": 2488,
|
| 32 |
+
"weighted_majority": 659,
|
| 33 |
+
"not_converged": 3
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"complete": {
|
| 37 |
+
"n_cases": 3150,
|
| 38 |
+
"n_errors": 0,
|
| 39 |
+
"accuracy_mean": 0.4758730158730159,
|
| 40 |
+
"accuracy_std": 0.4994968408945377,
|
| 41 |
+
"rounds_mean": 1.0733333333333333,
|
| 42 |
+
"rounds_std": 0.4372537641226672,
|
| 43 |
+
"tokens_mean": 43636.473333333335,
|
| 44 |
+
"tokens_std": 45277.658958650725,
|
| 45 |
+
"confidence_mean": 0.8757473015873015,
|
| 46 |
+
"confidence_std": 0.06699027778165821,
|
| 47 |
+
"convergence_rate": 1.0,
|
| 48 |
+
"convergence_type_counts": {
|
| 49 |
+
"unanimous": 2795,
|
| 50 |
+
"weighted_majority": 355
|
| 51 |
+
}
|
| 52 |
+
},
|
| 53 |
+
"ring": {
|
| 54 |
+
"n_cases": 3150,
|
| 55 |
+
"n_errors": 0,
|
| 56 |
+
"accuracy_mean": 0.4777777777777778,
|
| 57 |
+
"accuracy_std": 0.49958523427121443,
|
| 58 |
+
"rounds_mean": 1.1838095238095239,
|
| 59 |
+
"rounds_std": 0.8085314943933478,
|
| 60 |
+
"tokens_mean": 45207.77968253968,
|
| 61 |
+
"tokens_std": 47501.1089303294,
|
| 62 |
+
"confidence_mean": 0.8669657142857143,
|
| 63 |
+
"confidence_std": 0.0694969318054578,
|
| 64 |
+
"convergence_rate": 0.9968253968253968,
|
| 65 |
+
"convergence_type_counts": {
|
| 66 |
+
"unanimous": 2465,
|
| 67 |
+
"weighted_majority": 675,
|
| 68 |
+
"not_converged": 10
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
"hierarchical": {
|
| 72 |
+
"n_cases": 3150,
|
| 73 |
+
"n_errors": 0,
|
| 74 |
+
"accuracy_mean": 0.473015873015873,
|
| 75 |
+
"accuracy_std": 0.4993505942157123,
|
| 76 |
+
"rounds_mean": 1.2368253968253968,
|
| 77 |
+
"rounds_std": 1.0257603356077607,
|
| 78 |
+
"tokens_mean": 46365.31904761905,
|
| 79 |
+
"tokens_std": 52039.323225782915,
|
| 80 |
+
"confidence_mean": 0.8659126984126985,
|
| 81 |
+
"confidence_std": 0.06985970378398493,
|
| 82 |
+
"convergence_rate": 0.9923809523809524,
|
| 83 |
+
"convergence_type_counts": {
|
| 84 |
+
"unanimous": 2394,
|
| 85 |
+
"weighted_majority": 732,
|
| 86 |
+
"not_converged": 24
|
| 87 |
+
}
|
| 88 |
+
}
|
| 89 |
+
}
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/fixed6/all_results.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/fixed6/summary.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"single": {
|
| 3 |
+
"n_cases": 3150,
|
| 4 |
+
"n_errors": 0,
|
| 5 |
+
"accuracy_mean": 0.4473015873015873,
|
| 6 |
+
"accuracy_std": 0.497294063583583,
|
| 7 |
+
"rounds_mean": 0.0,
|
| 8 |
+
"rounds_std": 0.0,
|
| 9 |
+
"tokens_mean": 4954.85746031746,
|
| 10 |
+
"tokens_std": 4572.679194993217,
|
| 11 |
+
"confidence_mean": 0.4491650793650794,
|
| 12 |
+
"confidence_std": 0.030202577175845895,
|
| 13 |
+
"convergence_rate": 1.0,
|
| 14 |
+
"convergence_type_counts": {
|
| 15 |
+
"single": 3150
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"star": {
|
| 19 |
+
"n_cases": 3150,
|
| 20 |
+
"n_errors": 0,
|
| 21 |
+
"accuracy_mean": 0.4822222222222222,
|
| 22 |
+
"accuracy_std": 0.4997631844533109,
|
| 23 |
+
"rounds_mean": 6.0,
|
| 24 |
+
"rounds_std": 0.0,
|
| 25 |
+
"tokens_mean": 170603.08952380953,
|
| 26 |
+
"tokens_std": 63394.452189804906,
|
| 27 |
+
"confidence_mean": 0.9692,
|
| 28 |
+
"confidence_std": 0.0412673474594445,
|
| 29 |
+
"convergence_rate": 0.0,
|
| 30 |
+
"convergence_type_counts": {
|
| 31 |
+
"not_converged": 3150
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
"complete": {
|
| 35 |
+
"n_cases": 3150,
|
| 36 |
+
"n_errors": 0,
|
| 37 |
+
"accuracy_mean": 0.48603174603174604,
|
| 38 |
+
"accuracy_std": 0.4998842027946899,
|
| 39 |
+
"rounds_mean": 6.0,
|
| 40 |
+
"rounds_std": 0.0,
|
| 41 |
+
"tokens_mean": 242564.97650793652,
|
| 42 |
+
"tokens_std": 68010.65136104719,
|
| 43 |
+
"confidence_mean": 0.9801371428571428,
|
| 44 |
+
"confidence_std": 0.03557990642147404,
|
| 45 |
+
"convergence_rate": 0.0,
|
| 46 |
+
"convergence_type_counts": {
|
| 47 |
+
"not_converged": 3150
|
| 48 |
+
}
|
| 49 |
+
},
|
| 50 |
+
"ring": {
|
| 51 |
+
"n_cases": 3150,
|
| 52 |
+
"n_errors": 0,
|
| 53 |
+
"accuracy_mean": 0.4857142857142857,
|
| 54 |
+
"accuracy_std": 0.4998752282735986,
|
| 55 |
+
"rounds_mean": 6.0,
|
| 56 |
+
"rounds_std": 0.0,
|
| 57 |
+
"tokens_mean": 175621.92698412697,
|
| 58 |
+
"tokens_std": 63411.70728232742,
|
| 59 |
+
"confidence_mean": 0.9749425396825396,
|
| 60 |
+
"confidence_std": 0.037597653520301325,
|
| 61 |
+
"convergence_rate": 0.0,
|
| 62 |
+
"convergence_type_counts": {
|
| 63 |
+
"not_converged": 3150
|
| 64 |
+
}
|
| 65 |
+
},
|
| 66 |
+
"hierarchical": {
|
| 67 |
+
"n_cases": 3150,
|
| 68 |
+
"n_errors": 0,
|
| 69 |
+
"accuracy_mean": 0.47174603174603175,
|
| 70 |
+
"accuracy_std": 0.49928033213386164,
|
| 71 |
+
"rounds_mean": 6.0,
|
| 72 |
+
"rounds_std": 0.0,
|
| 73 |
+
"tokens_mean": 164798.6346031746,
|
| 74 |
+
"tokens_std": 60460.81742642259,
|
| 75 |
+
"confidence_mean": 0.969691746031746,
|
| 76 |
+
"confidence_std": 0.039974625507567335,
|
| 77 |
+
"convergence_rate": 0.0,
|
| 78 |
+
"convergence_type_counts": {
|
| 79 |
+
"not_converged": 3150
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
}
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/tuned/all_results.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/tuned/summary.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"single": {
|
| 3 |
+
"n_cases": 3150,
|
| 4 |
+
"n_errors": 0,
|
| 5 |
+
"accuracy_mean": 0.4473015873015873,
|
| 6 |
+
"accuracy_std": 0.497294063583583,
|
| 7 |
+
"rounds_mean": 0.0,
|
| 8 |
+
"rounds_std": 0.0,
|
| 9 |
+
"tokens_mean": 4880.5203174603175,
|
| 10 |
+
"tokens_std": 4537.68029257931,
|
| 11 |
+
"confidence_mean": 0.45020952380952384,
|
| 12 |
+
"confidence_std": 0.028907610708988347,
|
| 13 |
+
"convergence_rate": 1.0,
|
| 14 |
+
"convergence_type_counts": {
|
| 15 |
+
"single": 3150
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"star": {
|
| 19 |
+
"n_cases": 3150,
|
| 20 |
+
"n_errors": 0,
|
| 21 |
+
"accuracy_mean": 0.4803174603174603,
|
| 22 |
+
"accuracy_std": 0.49969176988453656,
|
| 23 |
+
"rounds_mean": 2.0095238095238095,
|
| 24 |
+
"rounds_std": 1.0292197042688307,
|
| 25 |
+
"tokens_mean": 65312.631746031744,
|
| 26 |
+
"tokens_std": 59772.90713464083,
|
| 27 |
+
"confidence_mean": 0.8558736507936507,
|
| 28 |
+
"confidence_std": 0.04420131244563625,
|
| 29 |
+
"convergence_rate": 0.9965079365079365,
|
| 30 |
+
"convergence_type_counts": {
|
| 31 |
+
"unanimous_with_conf": 2670,
|
| 32 |
+
"weighted_majority": 469,
|
| 33 |
+
"not_converged": 11
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"complete": {
|
| 37 |
+
"n_cases": 3150,
|
| 38 |
+
"n_errors": 0,
|
| 39 |
+
"accuracy_mean": 0.48063492063492064,
|
| 40 |
+
"accuracy_std": 0.49970417738537004,
|
| 41 |
+
"rounds_mean": 1.638095238095238,
|
| 42 |
+
"rounds_std": 0.9512453723787976,
|
| 43 |
+
"tokens_mean": 63638.094603174606,
|
| 44 |
+
"tokens_std": 75213.33908212742,
|
| 45 |
+
"confidence_mean": 0.8655428571428572,
|
| 46 |
+
"confidence_std": 0.04347797124495981,
|
| 47 |
+
"convergence_rate": 0.9980952380952381,
|
| 48 |
+
"convergence_type_counts": {
|
| 49 |
+
"unanimous_with_conf": 2920,
|
| 50 |
+
"weighted_majority": 224,
|
| 51 |
+
"not_converged": 6
|
| 52 |
+
}
|
| 53 |
+
},
|
| 54 |
+
"ring": {
|
| 55 |
+
"n_cases": 3150,
|
| 56 |
+
"n_errors": 0,
|
| 57 |
+
"accuracy_mean": 0.48,
|
| 58 |
+
"accuracy_std": 0.499679160320077,
|
| 59 |
+
"rounds_mean": 1.9247619047619047,
|
| 60 |
+
"rounds_std": 1.0426242283273774,
|
| 61 |
+
"tokens_mean": 64122.485396825396,
|
| 62 |
+
"tokens_std": 63833.248813473605,
|
| 63 |
+
"confidence_mean": 0.8559358730158729,
|
| 64 |
+
"confidence_std": 0.04147061249810893,
|
| 65 |
+
"convergence_rate": 0.9971428571428571,
|
| 66 |
+
"convergence_type_counts": {
|
| 67 |
+
"unanimous_with_conf": 2676,
|
| 68 |
+
"weighted_majority": 465,
|
| 69 |
+
"not_converged": 9
|
| 70 |
+
}
|
| 71 |
+
},
|
| 72 |
+
"hierarchical": {
|
| 73 |
+
"n_cases": 3150,
|
| 74 |
+
"n_errors": 0,
|
| 75 |
+
"accuracy_mean": 0.4774603174603175,
|
| 76 |
+
"accuracy_std": 0.4995710076262872,
|
| 77 |
+
"rounds_mean": 2.0714285714285716,
|
| 78 |
+
"rounds_std": 1.1910175847082758,
|
| 79 |
+
"tokens_mean": 66152.03047619047,
|
| 80 |
+
"tokens_std": 65717.94584206482,
|
| 81 |
+
"confidence_mean": 0.8548107936507936,
|
| 82 |
+
"confidence_std": 0.04186784252691231,
|
| 83 |
+
"convergence_rate": 0.9949206349206349,
|
| 84 |
+
"convergence_type_counts": {
|
| 85 |
+
"unanimous_with_conf": 2582,
|
| 86 |
+
"weighted_majority": 552,
|
| 87 |
+
"not_converged": 16
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
}
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/gain_bottleneck_report.json
ADDED
|
@@ -0,0 +1,681 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"aeb_compression": {
|
| 3 |
+
"aeb_win_rate": 0.4865497076023392,
|
| 4 |
+
"mean_retained_ids_losses": 8.186788154897494,
|
| 5 |
+
"mean_retained_ids_wins": 8.04326923076923,
|
| 6 |
+
"mean_retention_losses": 0.3399298375151417,
|
| 7 |
+
"mean_retention_wins": 0.33387560027370944,
|
| 8 |
+
"mean_units_losses": 25.11617312072893,
|
| 9 |
+
"mean_units_wins": 25.07451923076923,
|
| 10 |
+
"mwmc_sole_correct_rescue_n": 685,
|
| 11 |
+
"mwmc_sole_correct_rescue_rate": 0.22481751824817517,
|
| 12 |
+
"n_aeb_losses": 439,
|
| 13 |
+
"n_aeb_wins": 416,
|
| 14 |
+
"n_paired": 7350,
|
| 15 |
+
"n_ties": 6495,
|
| 16 |
+
"novel_answer_accuracy": 0.2916666666666667,
|
| 17 |
+
"novel_answer_n": 240,
|
| 18 |
+
"win_rate_by_retention_decile": [
|
| 19 |
+
{
|
| 20 |
+
"aeb_win_rate": 0.46875,
|
| 21 |
+
"decile": 0,
|
| 22 |
+
"n": 187,
|
| 23 |
+
"range": "0.00-0.15"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"aeb_win_rate": 0.5193798449612403,
|
| 27 |
+
"decile": 1,
|
| 28 |
+
"n": 933,
|
| 29 |
+
"range": "0.15-0.21"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"aeb_win_rate": 0.515,
|
| 33 |
+
"decile": 2,
|
| 34 |
+
"n": 1397,
|
| 35 |
+
"range": "0.21-0.27"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"aeb_win_rate": 0.4385026737967914,
|
| 39 |
+
"decile": 3,
|
| 40 |
+
"n": 1429,
|
| 41 |
+
"range": "0.27-0.34"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"aeb_win_rate": 0.5263157894736842,
|
| 45 |
+
"decile": 4,
|
| 46 |
+
"n": 891,
|
| 47 |
+
"range": "0.34-0.41"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"aeb_win_rate": 0.484375,
|
| 51 |
+
"decile": 5,
|
| 52 |
+
"n": 724,
|
| 53 |
+
"range": "0.41-0.50"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"aeb_win_rate": 0.39622641509433965,
|
| 57 |
+
"decile": 6,
|
| 58 |
+
"n": 686,
|
| 59 |
+
"range": "0.50-0.59"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"aeb_win_rate": 0.4,
|
| 63 |
+
"decile": 7,
|
| 64 |
+
"n": 425,
|
| 65 |
+
"range": "0.59-0.70"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"aeb_win_rate": 0.5454545454545454,
|
| 69 |
+
"decile": 8,
|
| 70 |
+
"n": 344,
|
| 71 |
+
"range": "0.70-0.83"
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"aeb_win_rate": 0.5416666666666666,
|
| 75 |
+
"decile": 9,
|
| 76 |
+
"n": 334,
|
| 77 |
+
"range": "0.83-1.01"
|
| 78 |
+
}
|
| 79 |
+
]
|
| 80 |
+
},
|
| 81 |
+
"confidence_calibration": {
|
| 82 |
+
"by_protocol": {
|
| 83 |
+
"anonymous_evidence_board": {
|
| 84 |
+
"binned_calibration": [
|
| 85 |
+
{
|
| 86 |
+
"accuracy": 0.24561403508771928,
|
| 87 |
+
"bin": "0.0-0.5",
|
| 88 |
+
"mean_confidence": 0.30000000000000004,
|
| 89 |
+
"n": 57
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"accuracy": 0.32277745496804183,
|
| 93 |
+
"bin": "0.5-0.8",
|
| 94 |
+
"mean_confidence": 0.7074970947123765,
|
| 95 |
+
"n": 6884
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"accuracy": 0.39944325286359694,
|
| 99 |
+
"bin": "0.8-0.95",
|
| 100 |
+
"mean_confidence": 0.8558344361794369,
|
| 101 |
+
"n": 21913
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"accuracy": 0.47188449848024316,
|
| 105 |
+
"bin": "0.95-1.01",
|
| 106 |
+
"mean_confidence": 0.9539247720364741,
|
| 107 |
+
"n": 7896
|
| 108 |
+
}
|
| 109 |
+
],
|
| 110 |
+
"mean_confidence_correct": 0.8601202854230378,
|
| 111 |
+
"mean_confidence_wrong": 0.8403417290673928,
|
| 112 |
+
"n_confidence_pairs": 36750
|
| 113 |
+
},
|
| 114 |
+
"majority_vote": {
|
| 115 |
+
"binned_calibration": [
|
| 116 |
+
{
|
| 117 |
+
"accuracy": 0.23076923076923078,
|
| 118 |
+
"bin": "0.0-0.5",
|
| 119 |
+
"mean_confidence": 0.3038461538461539,
|
| 120 |
+
"n": 52
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"accuracy": 0.3165593914569924,
|
| 124 |
+
"bin": "0.5-0.8",
|
| 125 |
+
"mean_confidence": 0.7077091866588647,
|
| 126 |
+
"n": 6836
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"accuracy": 0.39703119989004443,
|
| 130 |
+
"bin": "0.8-0.95",
|
| 131 |
+
"mean_confidence": 0.8555559627983691,
|
| 132 |
+
"n": 21827
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"accuracy": 0.4760423148724331,
|
| 136 |
+
"bin": "0.95-1.01",
|
| 137 |
+
"mean_confidence": 0.9537685127566895,
|
| 138 |
+
"n": 8035
|
| 139 |
+
}
|
| 140 |
+
],
|
| 141 |
+
"mean_confidence_correct": 0.8608767982545851,
|
| 142 |
+
"mean_confidence_wrong": 0.8406905764615316,
|
| 143 |
+
"n_confidence_pairs": 36750
|
| 144 |
+
},
|
| 145 |
+
"open_committee": {
|
| 146 |
+
"binned_calibration": [
|
| 147 |
+
{
|
| 148 |
+
"accuracy": 0.19696969696969696,
|
| 149 |
+
"bin": "0.0-0.5",
|
| 150 |
+
"mean_confidence": 0.31287878787878787,
|
| 151 |
+
"n": 66
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"accuracy": 0.3172144201534675,
|
| 155 |
+
"bin": "0.5-0.8",
|
| 156 |
+
"mean_confidence": 0.7081583900390908,
|
| 157 |
+
"n": 6907
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"accuracy": 0.39371483463702484,
|
| 161 |
+
"bin": "0.8-0.95",
|
| 162 |
+
"mean_confidence": 0.8563789396642423,
|
| 163 |
+
"n": 21861
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"accuracy": 0.4729661445174331,
|
| 167 |
+
"bin": "0.95-1.01",
|
| 168 |
+
"mean_confidence": 0.9539274886306215,
|
| 169 |
+
"n": 7916
|
| 170 |
+
}
|
| 171 |
+
],
|
| 172 |
+
"mean_confidence_correct": 0.8609467536928891,
|
| 173 |
+
"mean_confidence_wrong": 0.8404329804009912,
|
| 174 |
+
"n_confidence_pairs": 36750
|
| 175 |
+
},
|
| 176 |
+
"single_agent": {
|
| 177 |
+
"binned_calibration": [
|
| 178 |
+
{
|
| 179 |
+
"accuracy": 0.2,
|
| 180 |
+
"bin": "0.0-0.5",
|
| 181 |
+
"mean_confidence": 0.29,
|
| 182 |
+
"n": 10
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"accuracy": 0.3105542900531511,
|
| 186 |
+
"bin": "0.5-0.8",
|
| 187 |
+
"mean_confidence": 0.7089749430523917,
|
| 188 |
+
"n": 1317
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"accuracy": 0.3990439335306169,
|
| 192 |
+
"bin": "0.8-0.95",
|
| 193 |
+
"mean_confidence": 0.8580150239016617,
|
| 194 |
+
"n": 4393
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"accuracy": 0.4705521472392638,
|
| 198 |
+
"bin": "0.95-1.01",
|
| 199 |
+
"mean_confidence": 0.954276073619632,
|
| 200 |
+
"n": 1630
|
| 201 |
+
}
|
| 202 |
+
],
|
| 203 |
+
"mean_confidence_correct": 0.8647424087342204,
|
| 204 |
+
"mean_confidence_wrong": 0.8433559628875311,
|
| 205 |
+
"n_confidence_pairs": 7350
|
| 206 |
+
}
|
| 207 |
+
},
|
| 208 |
+
"majority_comparison": [
|
| 209 |
+
{
|
| 210 |
+
"confidence_weighted_majority_accuracy": 0.39877551020408164,
|
| 211 |
+
"n": 7350,
|
| 212 |
+
"protocol": "single_agent",
|
| 213 |
+
"simple_majority_accuracy": 0.39877551020408164
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"confidence_weighted_majority_accuracy": 0.4089795918367347,
|
| 217 |
+
"n": 7350,
|
| 218 |
+
"protocol": "majority_vote",
|
| 219 |
+
"simple_majority_accuracy": 0.41034013605442177
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"confidence_weighted_majority_accuracy": 0.4042176870748299,
|
| 223 |
+
"n": 7350,
|
| 224 |
+
"protocol": "open_committee",
|
| 225 |
+
"simple_majority_accuracy": 0.40530612244897957
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"confidence_weighted_majority_accuracy": 0.41034013605442177,
|
| 229 |
+
"n": 7350,
|
| 230 |
+
"protocol": "anonymous_evidence_board",
|
| 231 |
+
"simple_majority_accuracy": 0.4107482993197279
|
| 232 |
+
}
|
| 233 |
+
],
|
| 234 |
+
"mwmc_confidence_comparison": [
|
| 235 |
+
{
|
| 236 |
+
"mean_majority_confidence": 0.0,
|
| 237 |
+
"mean_minority_confidence": 0.0,
|
| 238 |
+
"n_cases": 7350,
|
| 239 |
+
"n_majority_agents": 0,
|
| 240 |
+
"n_minority_agents": 0,
|
| 241 |
+
"protocol": "single_agent"
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"mean_majority_confidence": 0.8280207100591717,
|
| 245 |
+
"mean_minority_confidence": 0.8063287671232877,
|
| 246 |
+
"n_cases": 7350,
|
| 247 |
+
"n_majority_agents": 3380,
|
| 248 |
+
"n_minority_agents": 1460,
|
| 249 |
+
"protocol": "majority_vote"
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"mean_majority_confidence": 0.8291143270622287,
|
| 253 |
+
"mean_minority_confidence": 0.8057752200406229,
|
| 254 |
+
"n_cases": 7350,
|
| 255 |
+
"n_majority_agents": 3455,
|
| 256 |
+
"n_minority_agents": 1477,
|
| 257 |
+
"protocol": "open_committee"
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"mean_majority_confidence": 0.8268896713615024,
|
| 261 |
+
"mean_minority_confidence": 0.8034575569358179,
|
| 262 |
+
"n_cases": 7350,
|
| 263 |
+
"n_majority_agents": 3408,
|
| 264 |
+
"n_minority_agents": 1449,
|
| 265 |
+
"protocol": "anonymous_evidence_board"
|
| 266 |
+
}
|
| 267 |
+
]
|
| 268 |
+
},
|
| 269 |
+
"difficulty_strata": [
|
| 270 |
+
{
|
| 271 |
+
"global_all_correct": 1.0,
|
| 272 |
+
"global_all_correct_n": 2217,
|
| 273 |
+
"global_all_wrong": 0.0,
|
| 274 |
+
"global_all_wrong_n": 3510,
|
| 275 |
+
"global_single_correct_multi_wrong": 1.0,
|
| 276 |
+
"global_single_correct_multi_wrong_n": 157,
|
| 277 |
+
"global_single_wrong_multi_correct": 0.0,
|
| 278 |
+
"global_single_wrong_multi_correct_n": 486,
|
| 279 |
+
"protocol": "single_agent",
|
| 280 |
+
"protocol_no_round0_agent_correct": 0.0,
|
| 281 |
+
"protocol_no_round0_agent_correct_n": 4419
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"global_all_correct": 1.0,
|
| 285 |
+
"global_all_correct_n": 2217,
|
| 286 |
+
"global_all_wrong": 0.0,
|
| 287 |
+
"global_all_wrong_n": 3510,
|
| 288 |
+
"global_single_correct_multi_wrong": 0.0,
|
| 289 |
+
"global_single_correct_multi_wrong_n": 157,
|
| 290 |
+
"global_single_wrong_multi_correct": 0.7962962962962963,
|
| 291 |
+
"global_single_wrong_multi_correct_n": 486,
|
| 292 |
+
"protocol": "majority_vote",
|
| 293 |
+
"protocol_majority_correct": 1.0,
|
| 294 |
+
"protocol_majority_correct_n": 2918,
|
| 295 |
+
"protocol_majority_wrong_minority_correct": 0.04060434372049103,
|
| 296 |
+
"protocol_majority_wrong_minority_correct_n": 1059,
|
| 297 |
+
"protocol_no_round0_agent_correct": 0.0,
|
| 298 |
+
"protocol_no_round0_agent_correct_n": 3275
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"global_all_correct": 1.0,
|
| 302 |
+
"global_all_correct_n": 2217,
|
| 303 |
+
"global_all_wrong": 0.0,
|
| 304 |
+
"global_all_wrong_n": 3510,
|
| 305 |
+
"global_single_correct_multi_wrong": 0.0,
|
| 306 |
+
"global_single_correct_multi_wrong_n": 157,
|
| 307 |
+
"global_single_wrong_multi_correct": 0.8888888888888888,
|
| 308 |
+
"global_single_wrong_multi_correct_n": 486,
|
| 309 |
+
"protocol": "open_committee",
|
| 310 |
+
"protocol_majority_correct": 0.9735006973500697,
|
| 311 |
+
"protocol_majority_correct_n": 2868,
|
| 312 |
+
"protocol_majority_wrong_minority_correct": 0.21691176470588236,
|
| 313 |
+
"protocol_majority_wrong_minority_correct_n": 1088,
|
| 314 |
+
"protocol_no_round0_agent_correct": 0.0018275967103259215,
|
| 315 |
+
"protocol_no_round0_agent_correct_n": 3283
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"global_all_correct": 1.0,
|
| 319 |
+
"global_all_correct_n": 2217,
|
| 320 |
+
"global_all_wrong": 0.0,
|
| 321 |
+
"global_all_wrong_n": 3510,
|
| 322 |
+
"global_single_correct_multi_wrong": 0.0,
|
| 323 |
+
"global_single_correct_multi_wrong_n": 157,
|
| 324 |
+
"global_single_wrong_multi_correct": 0.808641975308642,
|
| 325 |
+
"global_single_wrong_multi_correct_n": 486,
|
| 326 |
+
"protocol": "anonymous_evidence_board",
|
| 327 |
+
"protocol_majority_correct": 0.907128169979438,
|
| 328 |
+
"protocol_majority_correct_n": 2918,
|
| 329 |
+
"protocol_majority_wrong_minority_correct": 0.29896907216494845,
|
| 330 |
+
"protocol_majority_wrong_minority_correct_n": 1067,
|
| 331 |
+
"protocol_no_round0_agent_correct": 0.02144607843137255,
|
| 332 |
+
"protocol_no_round0_agent_correct_n": 3264
|
| 333 |
+
}
|
| 334 |
+
],
|
| 335 |
+
"discussion_transitions": {
|
| 336 |
+
"agent_transitions": {
|
| 337 |
+
"correct_to_correct": 12550,
|
| 338 |
+
"correct_to_wrong": 2005,
|
| 339 |
+
"wrong_to_correct": 2680,
|
| 340 |
+
"wrong_to_wrong": 19515
|
| 341 |
+
},
|
| 342 |
+
"case_damage_count": 755,
|
| 343 |
+
"case_rescue_count": 1106,
|
| 344 |
+
"final_accuracy_when_correct_agents_decrease": 0.03329065300896287,
|
| 345 |
+
"final_accuracy_when_correct_agents_increase": 0.9501718213058419,
|
| 346 |
+
"final_error_rate_when_correct_agents_decrease": 0.9667093469910372,
|
| 347 |
+
"n_cases": 7350,
|
| 348 |
+
"n_correct_agents_decrease": 781,
|
| 349 |
+
"n_correct_agents_increase": 1164
|
| 350 |
+
},
|
| 351 |
+
"error_correlation": {
|
| 352 |
+
"all_correct_rate": 0.3016326530612245,
|
| 353 |
+
"all_wrong_rate": 0.4775510204081633,
|
| 354 |
+
"n_correct_protocols_histogram": [
|
| 355 |
+
{
|
| 356 |
+
"count": 3510,
|
| 357 |
+
"n_correct": 0
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"count": 580,
|
| 361 |
+
"n_correct": 1
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"count": 447,
|
| 365 |
+
"n_correct": 2
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"count": 596,
|
| 369 |
+
"n_correct": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"count": 2217,
|
| 373 |
+
"n_correct": 4
|
| 374 |
+
}
|
| 375 |
+
],
|
| 376 |
+
"n_protocols": 4,
|
| 377 |
+
"pairwise": [
|
| 378 |
+
{
|
| 379 |
+
"agreement": 0.8801360544217687,
|
| 380 |
+
"both_correct": 2534,
|
| 381 |
+
"both_wrong": 3935,
|
| 382 |
+
"error_correlation": 0.8170681063122923,
|
| 383 |
+
"error_correlation_n": 4816,
|
| 384 |
+
"n": 7350,
|
| 385 |
+
"pair": "single_agent vs majority_vote",
|
| 386 |
+
"single_agent_correct_majority_vote_wrong": 397,
|
| 387 |
+
"single_agent_wrong_majority_vote_correct": 484
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"agreement": 0.8755102040816326,
|
| 391 |
+
"both_correct": 2559,
|
| 392 |
+
"both_wrong": 3876,
|
| 393 |
+
"error_correlation": 0.8090169067000627,
|
| 394 |
+
"error_correlation_n": 4791,
|
| 395 |
+
"n": 7350,
|
| 396 |
+
"pair": "single_agent vs open_committee",
|
| 397 |
+
"single_agent_correct_open_committee_wrong": 372,
|
| 398 |
+
"single_agent_wrong_open_committee_correct": 543
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"agreement": 0.8546938775510204,
|
| 402 |
+
"both_correct": 2471,
|
| 403 |
+
"both_wrong": 3811,
|
| 404 |
+
"error_correlation": 0.7811026849764297,
|
| 405 |
+
"error_correlation_n": 4879,
|
| 406 |
+
"n": 7350,
|
| 407 |
+
"pair": "single_agent vs anonymous_evidence_board",
|
| 408 |
+
"single_agent_correct_anonymous_evidence_board_wrong": 460,
|
| 409 |
+
"single_agent_wrong_anonymous_evidence_board_correct": 608
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"agreement": 0.9096598639455782,
|
| 413 |
+
"both_correct": 2728,
|
| 414 |
+
"both_wrong": 3958,
|
| 415 |
+
"error_correlation": 0.8563392470791865,
|
| 416 |
+
"error_correlation_n": 4622,
|
| 417 |
+
"majority_vote_correct_open_committee_wrong": 290,
|
| 418 |
+
"majority_vote_wrong_open_committee_correct": 374,
|
| 419 |
+
"n": 7350,
|
| 420 |
+
"pair": "majority_vote vs open_committee"
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"agreement": 0.873061224489796,
|
| 424 |
+
"both_correct": 2582,
|
| 425 |
+
"both_wrong": 3835,
|
| 426 |
+
"error_correlation": 0.8043204697986577,
|
| 427 |
+
"error_correlation_n": 4768,
|
| 428 |
+
"majority_vote_correct_anonymous_evidence_board_wrong": 436,
|
| 429 |
+
"majority_vote_wrong_anonymous_evidence_board_correct": 497,
|
| 430 |
+
"n": 7350,
|
| 431 |
+
"pair": "majority_vote vs anonymous_evidence_board"
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"agreement": 0.8836734693877552,
|
| 435 |
+
"both_correct": 2663,
|
| 436 |
+
"both_wrong": 3832,
|
| 437 |
+
"error_correlation": 0.8175805419244719,
|
| 438 |
+
"error_correlation_n": 4687,
|
| 439 |
+
"n": 7350,
|
| 440 |
+
"open_committee_correct_anonymous_evidence_board_wrong": 439,
|
| 441 |
+
"open_committee_wrong_anonymous_evidence_board_correct": 416,
|
| 442 |
+
"pair": "open_committee vs anonymous_evidence_board"
|
| 443 |
+
}
|
| 444 |
+
]
|
| 445 |
+
},
|
| 446 |
+
"judge_behavior": {
|
| 447 |
+
"anonymous_evidence_board": {
|
| 448 |
+
"full_dataset": {
|
| 449 |
+
"follows_highest_confidence": 0.8308843537414966,
|
| 450 |
+
"follows_majority": 0.8315646258503402,
|
| 451 |
+
"follows_minority": 0.13578231292517007,
|
| 452 |
+
"novel_answer": 0.0326530612244898
|
| 453 |
+
},
|
| 454 |
+
"majority_wrong_minority_correct_subset": {
|
| 455 |
+
"follows_highest_confidence": 0.5904404873477038,
|
| 456 |
+
"follows_majority": 0.5960637300843487,
|
| 457 |
+
"follows_minority": 0.37488284910965325,
|
| 458 |
+
"novel_answer": 0.029053420805998126
|
| 459 |
+
}
|
| 460 |
+
},
|
| 461 |
+
"open_committee": {
|
| 462 |
+
"full_dataset": {
|
| 463 |
+
"follows_highest_confidence": 0.9193197278911565,
|
| 464 |
+
"follows_majority": 0.9165986394557823,
|
| 465 |
+
"follows_minority": 0.0817687074829932,
|
| 466 |
+
"novel_answer": 0.0016326530612244899
|
| 467 |
+
},
|
| 468 |
+
"majority_wrong_minority_correct_subset": {
|
| 469 |
+
"follows_highest_confidence": 0.7389705882352942,
|
| 470 |
+
"follows_majority": 0.7325367647058824,
|
| 471 |
+
"follows_minority": 0.265625,
|
| 472 |
+
"novel_answer": 0.001838235294117647
|
| 473 |
+
}
|
| 474 |
+
}
|
| 475 |
+
},
|
| 476 |
+
"metadata": {
|
| 477 |
+
"data_path": "TsinghuaC3I/MedXpertQA@7e7c465a68eb2b866926bfa59c8c9d17a8daba65/Text/test.jsonl#sha256=07ea977f7e326909b51c883b65f6ad7f399fc6db07408ef3630f4e3048ec71b2",
|
| 478 |
+
"n_case_ids": 2450,
|
| 479 |
+
"n_indexed": 29400,
|
| 480 |
+
"n_raw_records": 29400,
|
| 481 |
+
"n_rows": 29400,
|
| 482 |
+
"run_dirs": [
|
| 483 |
+
"medical_mas/raw/med_board/seed42",
|
| 484 |
+
"medical_mas/raw/med_board/seed43",
|
| 485 |
+
"medical_mas/raw/med_board/seed44"
|
| 486 |
+
],
|
| 487 |
+
"seeds": [
|
| 488 |
+
42,
|
| 489 |
+
43,
|
| 490 |
+
44
|
| 491 |
+
]
|
| 492 |
+
},
|
| 493 |
+
"oracle_gap_decomposition": [
|
| 494 |
+
{
|
| 495 |
+
"final_accuracy": 0.39877551020408164,
|
| 496 |
+
"fraction_majority_correct": 0.39877551020408164,
|
| 497 |
+
"fraction_majority_wrong_minority_correct": 0.0,
|
| 498 |
+
"fraction_no_agent_correct": 0.6012244897959184,
|
| 499 |
+
"n": 7350,
|
| 500 |
+
"oracle_gap": 0.0,
|
| 501 |
+
"protocol": "single_agent",
|
| 502 |
+
"round0_oracle_accuracy": 0.39877551020408164
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"final_accuracy": 0.41061224489795917,
|
| 506 |
+
"fraction_majority_correct": 0.41034013605442177,
|
| 507 |
+
"fraction_majority_wrong_minority_correct": 0.14408163265306123,
|
| 508 |
+
"fraction_no_agent_correct": 0.445578231292517,
|
| 509 |
+
"n": 7350,
|
| 510 |
+
"oracle_gap": 0.1438095238095238,
|
| 511 |
+
"protocol": "majority_vote",
|
| 512 |
+
"round0_oracle_accuracy": 0.5544217687074829
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"final_accuracy": 0.4220408163265306,
|
| 516 |
+
"fraction_majority_correct": 0.40530612244897957,
|
| 517 |
+
"fraction_majority_wrong_minority_correct": 0.14802721088435375,
|
| 518 |
+
"fraction_no_agent_correct": 0.44666666666666666,
|
| 519 |
+
"n": 7350,
|
| 520 |
+
"oracle_gap": 0.13129251700680272,
|
| 521 |
+
"protocol": "open_committee",
|
| 522 |
+
"round0_oracle_accuracy": 0.5533333333333333
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"final_accuracy": 0.41891156462585033,
|
| 526 |
+
"fraction_majority_correct": 0.4107482993197279,
|
| 527 |
+
"fraction_majority_wrong_minority_correct": 0.14517006802721089,
|
| 528 |
+
"fraction_no_agent_correct": 0.4440816326530612,
|
| 529 |
+
"n": 7350,
|
| 530 |
+
"oracle_gap": 0.13700680272108842,
|
| 531 |
+
"protocol": "anonymous_evidence_board",
|
| 532 |
+
"round0_oracle_accuracy": 0.5559183673469388
|
| 533 |
+
}
|
| 534 |
+
],
|
| 535 |
+
"round0_correct_agent_count": [
|
| 536 |
+
{
|
| 537 |
+
"final_accuracy": 0.0,
|
| 538 |
+
"n": 4419,
|
| 539 |
+
"n_correct_agents": 0,
|
| 540 |
+
"protocol": "single_agent"
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"final_accuracy": 1.0,
|
| 544 |
+
"n": 2931,
|
| 545 |
+
"n_correct_agents": 1,
|
| 546 |
+
"protocol": "single_agent"
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"final_accuracy": 0.0,
|
| 550 |
+
"n": 0,
|
| 551 |
+
"n_correct_agents": 2,
|
| 552 |
+
"protocol": "single_agent"
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"final_accuracy": 0.0,
|
| 556 |
+
"n": 0,
|
| 557 |
+
"n_correct_agents": 3,
|
| 558 |
+
"protocol": "single_agent"
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"final_accuracy": 0.0,
|
| 562 |
+
"n": 0,
|
| 563 |
+
"n_correct_agents": 4,
|
| 564 |
+
"protocol": "single_agent"
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"final_accuracy": 0.0,
|
| 568 |
+
"n": 0,
|
| 569 |
+
"n_correct_agents": 5,
|
| 570 |
+
"protocol": "single_agent"
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"final_accuracy": 0.0,
|
| 574 |
+
"n": 3275,
|
| 575 |
+
"n_correct_agents": 0,
|
| 576 |
+
"protocol": "majority_vote"
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"final_accuracy": 0.0015151515151515152,
|
| 580 |
+
"n": 660,
|
| 581 |
+
"n_correct_agents": 1,
|
| 582 |
+
"protocol": "majority_vote"
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"final_accuracy": 0.19919517102615694,
|
| 586 |
+
"n": 497,
|
| 587 |
+
"n_correct_agents": 2,
|
| 588 |
+
"protocol": "majority_vote"
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"final_accuracy": 1.0,
|
| 592 |
+
"n": 513,
|
| 593 |
+
"n_correct_agents": 3,
|
| 594 |
+
"protocol": "majority_vote"
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"final_accuracy": 1.0,
|
| 598 |
+
"n": 551,
|
| 599 |
+
"n_correct_agents": 4,
|
| 600 |
+
"protocol": "majority_vote"
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"final_accuracy": 1.0,
|
| 604 |
+
"n": 1854,
|
| 605 |
+
"n_correct_agents": 5,
|
| 606 |
+
"protocol": "majority_vote"
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"final_accuracy": 0.0018275967103259215,
|
| 610 |
+
"n": 3283,
|
| 611 |
+
"n_correct_agents": 0,
|
| 612 |
+
"protocol": "open_committee"
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"final_accuracy": 0.10413694721825963,
|
| 616 |
+
"n": 701,
|
| 617 |
+
"n_correct_agents": 1,
|
| 618 |
+
"protocol": "open_committee"
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"final_accuracy": 0.463855421686747,
|
| 622 |
+
"n": 498,
|
| 623 |
+
"n_correct_agents": 2,
|
| 624 |
+
"protocol": "open_committee"
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"final_accuracy": 0.8589743589743589,
|
| 628 |
+
"n": 468,
|
| 629 |
+
"n_correct_agents": 3,
|
| 630 |
+
"protocol": "open_committee"
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"final_accuracy": 0.9816849816849816,
|
| 634 |
+
"n": 546,
|
| 635 |
+
"n_correct_agents": 4,
|
| 636 |
+
"protocol": "open_committee"
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"final_accuracy": 1.0,
|
| 640 |
+
"n": 1854,
|
| 641 |
+
"n_correct_agents": 5,
|
| 642 |
+
"protocol": "open_committee"
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"final_accuracy": 0.02144607843137255,
|
| 646 |
+
"n": 3264,
|
| 647 |
+
"n_correct_agents": 0,
|
| 648 |
+
"protocol": "anonymous_evidence_board"
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"final_accuracy": 0.2259475218658892,
|
| 652 |
+
"n": 686,
|
| 653 |
+
"n_correct_agents": 1,
|
| 654 |
+
"protocol": "anonymous_evidence_board"
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"final_accuracy": 0.42946058091286304,
|
| 658 |
+
"n": 482,
|
| 659 |
+
"n_correct_agents": 2,
|
| 660 |
+
"protocol": "anonymous_evidence_board"
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"final_accuracy": 0.6993603411513859,
|
| 664 |
+
"n": 469,
|
| 665 |
+
"n_correct_agents": 3,
|
| 666 |
+
"protocol": "anonymous_evidence_board"
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"final_accuracy": 0.8330494037478705,
|
| 670 |
+
"n": 587,
|
| 671 |
+
"n_correct_agents": 4,
|
| 672 |
+
"protocol": "anonymous_evidence_board"
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"final_accuracy": 0.9828141783029001,
|
| 676 |
+
"n": 1862,
|
| 677 |
+
"n_correct_agents": 5,
|
| 678 |
+
"protocol": "anonymous_evidence_board"
|
| 679 |
+
}
|
| 680 |
+
]
|
| 681 |
+
}
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/legacy_3seed_summary.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Real LLM Full-Dataset 3-Seed Summary
|
| 2 |
+
|
| 3 |
+
## Run metadata
|
| 4 |
+
|
| 5 |
+
- Total cases: `2450`
|
| 6 |
+
- Seeds: `42`, `43`, `44`
|
| 7 |
+
- Protocols: `single_agent`, `majority_vote`, `open_committee`, `anonymous_evidence_board`
|
| 8 |
+
- Rows per seed: `9800` (`2450` cases × 4 protocols)
|
| 9 |
+
- Total analyzed rows: `29400`
|
| 10 |
+
- Full-run configs:
|
| 11 |
+
- `configs/experiments/real_llm_full_seed42.yaml`
|
| 12 |
+
- `configs/experiments/real_llm_full_seed43.yaml`
|
| 13 |
+
- `configs/experiments/real_llm_full_seed44.yaml`
|
| 14 |
+
|
| 15 |
+
## QA status
|
| 16 |
+
|
| 17 |
+
All three full-dataset seeds passed `scripts/qa_real_smoke.py --n-cases 2450`.
|
| 18 |
+
|
| 19 |
+
| seed | QA | rows | failed cases | invalid final | invalid agent outputs | silent fallback | retry total | retry failure | normalization warnings | AEB leakage |
|
| 20 |
+
|---:|---|---:|---:|---:|---:|---:|---:|---:|---:|---|
|
| 21 |
+
| 42 | PASS | 9800 | 0 | 0 | 0 | 0 | 46 | 0 | 4 | PASS |
|
| 22 |
+
| 43 | PASS | 9800 | 0 | 0 | 0 | 0 | 59 | 0 | 0 | PASS |
|
| 23 |
+
| 44 | PASS | 9800 | 0 | 0 | 0 | 0 | 47 | 0 | 2 | PASS |
|
| 24 |
+
|
| 25 |
+
Aggregate QA totals:
|
| 26 |
+
|
| 27 |
+
| metric | value |
|
| 28 |
+
|---|---:|
|
| 29 |
+
| final decisions valid | 29400 / 29400 |
|
| 30 |
+
| agent outputs valid | 161700 / 161700 |
|
| 31 |
+
| failed cases | 0 |
|
| 32 |
+
| invalid final decisions | 0 |
|
| 33 |
+
| invalid agent outputs | 0 |
|
| 34 |
+
| silent fallbacks | 0 |
|
| 35 |
+
| retry total | 152 |
|
| 36 |
+
| retry success | 152 |
|
| 37 |
+
| retry failure | 0 |
|
| 38 |
+
| normalization warnings | 6 |
|
| 39 |
+
|
| 40 |
+
AEB leakage checks passed for persisted evidence boards, retained evidence IDs, and reconstructed judge prompts in all three seeds. The QA checks found no `source_agent`, visible source, `supports_option`, `contradicts_option`, agent identity in evidence IDs, agent diagnoses section, answer field leakage, or supports-label leakage.
|
| 41 |
+
|
| 42 |
+
## Accuracy by seed and protocol
|
| 43 |
+
|
| 44 |
+
| seed | single_agent | majority_vote | open_committee | anonymous_evidence_board |
|
| 45 |
+
|---:|---:|---:|---:|---:|
|
| 46 |
+
| 42 | 0.4008 | 0.4086 | 0.4220 | 0.4196 |
|
| 47 |
+
| 43 | 0.3943 | 0.4131 | 0.4245 | 0.4208 |
|
| 48 |
+
| 44 | 0.4012 | 0.4102 | 0.4196 | 0.4163 |
|
| 49 |
+
|
| 50 |
+
## Mean ± SD across seeds
|
| 51 |
+
|
| 52 |
+
| protocol | mean accuracy | SD | mean gain vs single_agent |
|
| 53 |
+
|---|---:|---:|---:|
|
| 54 |
+
| single_agent | 0.3988 | 0.0039 | 0.0000 |
|
| 55 |
+
| majority_vote | 0.4106 | 0.0023 | +0.0118 |
|
| 56 |
+
| open_committee | 0.4220 | 0.0024 | +0.0233 |
|
| 57 |
+
| anonymous_evidence_board | 0.4189 | 0.0023 | +0.0201 |
|
| 58 |
+
|
| 59 |
+
## Token usage and cost tradeoff
|
| 60 |
+
|
| 61 |
+
Token counts are used as the cost proxy because exact upstream dollar pricing is not encoded in these run artifacts.
|
| 62 |
+
|
| 63 |
+
| protocol | calls | prompt tokens | completion tokens | total tokens | token ratio vs single | accuracy gain vs single | gain per extra 1M tokens |
|
| 64 |
+
|---|---:|---:|---:|---:|---:|---:|---:|
|
| 65 |
+
| single_agent | 7359 | 5260686 | 17650380 | 22911066 | 1.00× | 0.0000 | N/A |
|
| 66 |
+
| majority_vote | 36782 | 26298327 | 87302201 | 113600528 | 4.96× | +0.0118 | 0.000131 |
|
| 67 |
+
| open_committee | 80921 | 102389632 | 143362727 | 245752359 | 10.73× | +0.0233 | 0.000104 |
|
| 68 |
+
| anonymous_evidence_board | 44140 | 36113815 | 102915171 | 139028986 | 6.07× | +0.0201 | 0.000173 |
|
| 69 |
+
|
| 70 |
+
Cost interpretation:
|
| 71 |
+
|
| 72 |
+
- `open_committee` has the best raw accuracy but uses the most calls and tokens: about `10.73×` single-agent token usage.
|
| 73 |
+
- `anonymous_evidence_board` is very close to `open_committee` in raw accuracy while using about `56.6%` of open-committee tokens (`139.0M` vs `245.8M`).
|
| 74 |
+
- `anonymous_evidence_board` has the strongest token-normalized gain among the multi-agent protocols in this run.
|
| 75 |
+
- `majority_vote` is cheaper than AEB and open committee, but it also has the smallest accuracy lift among the multi-agent methods.
|
| 76 |
+
|
| 77 |
+
## Conclusion
|
| 78 |
+
|
| 79 |
+
`open_committee` has the highest raw accuracy on the full-dataset 3-seed run (`0.4220 ± 0.0024`). `anonymous_evidence_board` is very close (`0.4189 ± 0.0023`), lower-cost than open committee, and leakage-safe under the current QA checks. All multi-agent methods modestly outperform `single_agent`, with mean gains of `+0.0118` for `majority_vote`, `+0.0233` for `open_committee`, and `+0.0201` for `anonymous_evidence_board`.
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/oracle_trials.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/external/results/formal/early_mas_architecture_motivation/analysis_ready/med_board/protocol_results.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/external/results/formal/early_mas_architecture_motivation/audits/code_security_gate.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Medical MAS Code Security Gate
|
| 2 |
+
|
| 3 |
+
## Payload scan
|
| 4 |
+
|
| 5 |
+
The selected experimental outputs passed the automated credential-pattern scan:
|
| 6 |
+
|
| 7 |
+
- scanned files: 47,300
|
| 8 |
+
- scanned bytes: 1,126,934,115
|
| 9 |
+
- credential-pattern matches: 0
|
| 10 |
+
- excluded files: three macOS `.DS_Store` files
|
| 11 |
+
|
| 12 |
+
The machine-readable result is `payload_security_scan.json`. File hashes and release-relative paths are recorded in `manifests/source_payload_inventory.csv.gz`.
|
| 13 |
+
|
| 14 |
+
## Code snapshot status
|
| 15 |
+
|
| 16 |
+
The code-snapshot gate passed. The snapshot contains 109 files and 1,338,100 bytes, with zero credential-pattern matches:
|
| 17 |
+
|
| 18 |
+
- 75 `med_board` files are byte-identical Git blobs from the provenance-labelled execution and analysis revisions.
|
| 19 |
+
- 34 `med-agent` files preserve the archived worktree and are labelled `reconstructed_worktree`.
|
| 20 |
+
- 32 `med-agent` files are byte-identical copies.
|
| 21 |
+
- Two runtime configuration files were sanitized in the copied snapshot. Their embedded credential fallback was removed, and the reconstructed configuration now requires `OPENAI_API_KEY` from the environment.
|
| 22 |
+
|
| 23 |
+
The original archive was not edited. Source and output hashes, revisions and transformations are recorded in `manifests/code_snapshot_manifest.csv`; the machine-readable scan is `code_snapshot_security_scan.json`. If the historical fallback was ever an active credential, rotation or revocation remains an operational security follow-up outside this repository.
|
| 24 |
+
|
| 25 |
+
## Release effect
|
| 26 |
+
|
| 27 |
+
The numerical archive and the code snapshot both pass their repository security gates. These checks do not change the provenance boundary: `med_board` remains tied to inferred historical commits, whereas `med-agent` remains a sanitized reconstruction of an incompletely tracked worktree.
|
data/external/results/formal/early_mas_architecture_motivation/audits/code_snapshot_security_scan.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"match_file_count": 0,
|
| 3 |
+
"matched_paths": {},
|
| 4 |
+
"scanned_bytes": 1338100,
|
| 5 |
+
"scanned_file_count": 109,
|
| 6 |
+
"secret_pattern_names": [
|
| 7 |
+
"assigned_api_key",
|
| 8 |
+
"bearer_token",
|
| 9 |
+
"huggingface_token",
|
| 10 |
+
"openai_style_token"
|
| 11 |
+
],
|
| 12 |
+
"status": "pass"
|
| 13 |
+
}
|
data/external/results/formal/early_mas_architecture_motivation/audits/code_snapshot_security_scan.metadata.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_kind": "analysis_auxiliary",
|
| 3 |
+
"command_mode": "medical_mas_code_snapshot",
|
| 4 |
+
"config_hash": "7ca1a29be00a",
|
| 5 |
+
"config_path": "configs/analyses/medical_mas_code_snapshot.yaml",
|
| 6 |
+
"evidence_status": "complete",
|
| 7 |
+
"generated_at_utc": "2026-08-24T09:18:43.517885+00:00",
|
| 8 |
+
"git_commit": "b9585011871af839e163a9a9f8612b30c2a6f391",
|
| 9 |
+
"input_paths": [
|
| 10 |
+
"results/formal/early_mas_architecture_motivation/manifests/source_repositories.yaml"
|
| 11 |
+
],
|
| 12 |
+
"output_paths": [
|
| 13 |
+
"results/formal/early_mas_architecture_motivation/manifests/code_snapshot_manifest.csv",
|
| 14 |
+
"results/formal/early_mas_architecture_motivation/audits/code_snapshot_security_scan.json"
|
| 15 |
+
],
|
| 16 |
+
"run_class": "formal"
|
| 17 |
+
}
|
data/external/results/formal/early_mas_architecture_motivation/audits/payload_security_scan.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"excluded_file_count": 3,
|
| 3 |
+
"excluded_paths": [
|
| 4 |
+
"med-agent/results_concurrency50/.DS_Store",
|
| 5 |
+
"med-agent/results_concurrency50_fixed6/.DS_Store",
|
| 6 |
+
"med-agent/results_concurrency50_tuned/.DS_Store"
|
| 7 |
+
],
|
| 8 |
+
"match_file_count": 0,
|
| 9 |
+
"matched_paths": {},
|
| 10 |
+
"scanned_bytes": 1126934115,
|
| 11 |
+
"scanned_file_count": 47300,
|
| 12 |
+
"secret_pattern_names": [
|
| 13 |
+
"assigned_api_key",
|
| 14 |
+
"bearer_token",
|
| 15 |
+
"huggingface_token",
|
| 16 |
+
"openai_style_token"
|
| 17 |
+
]
|
| 18 |
+
}
|
data/external/results/formal/early_mas_architecture_motivation/audits/payload_security_scan.metadata.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_kind": "analysis_auxiliary",
|
| 3 |
+
"command_mode": "medical_mas_source_inventory",
|
| 4 |
+
"config_hash": "ce88ed63583f",
|
| 5 |
+
"config_path": "configs/analyses/medical_mas_source_inventory.yaml",
|
| 6 |
+
"evidence_status": "complete",
|
| 7 |
+
"generated_at_utc": "2026-08-24T08:47:30.911805+00:00",
|
| 8 |
+
"git_commit": "e8971f3a5a5b5fb3f2d7277ae928520d401d1e62",
|
| 9 |
+
"input_paths": [
|
| 10 |
+
"docs/migration/medical_mas_migration_plan.md"
|
| 11 |
+
],
|
| 12 |
+
"output_paths": [
|
| 13 |
+
"results/formal/early_mas_architecture_motivation/manifests/source_payload_inventory.csv.gz",
|
| 14 |
+
"results/formal/early_mas_architecture_motivation/audits/payload_security_scan.json"
|
| 15 |
+
],
|
| 16 |
+
"run_class": "formal"
|
| 17 |
+
}
|
data/external/results/formal/early_mas_architecture_motivation/audits/private_release_verification.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"all_archive_hashes_recorded": true,
|
| 3 |
+
"all_member_hashes_match": true,
|
| 4 |
+
"archive_count": 7,
|
| 5 |
+
"inventory_sha256": "f6243099b9c19e1596ff428e873827948671760f8c6627b07e2a97f3303b25ef",
|
| 6 |
+
"member_count": 47300,
|
| 7 |
+
"previous_manifest_present": true,
|
| 8 |
+
"rebuild_hashes_match_previous": true,
|
| 9 |
+
"release_root": "results/tmp/medical_mas_private_release",
|
| 10 |
+
"shard_target_bytes": 268435456,
|
| 11 |
+
"status": "pass",
|
| 12 |
+
"uncompressed_bytes": 1126934115
|
| 13 |
+
}
|
data/external/results/formal/early_mas_architecture_motivation/audits/private_release_verification.metadata.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_kind": "analysis_auxiliary",
|
| 3 |
+
"command_mode": "medical_mas_private_release",
|
| 4 |
+
"config_hash": "f014d8afffa1",
|
| 5 |
+
"config_path": "configs/analyses/medical_mas_private_release.yaml",
|
| 6 |
+
"evidence_status": "complete",
|
| 7 |
+
"generated_at_utc": "2026-08-24T09:35:15.212556+00:00",
|
| 8 |
+
"git_commit": "adbdb91e927e374f7fcfc9c1c46c054a03fda95b",
|
| 9 |
+
"input_paths": [
|
| 10 |
+
"results/formal/early_mas_architecture_motivation/manifests/source_payload_inventory.csv.gz",
|
| 11 |
+
"results/formal/early_mas_architecture_motivation/manifests/source_repositories.yaml",
|
| 12 |
+
"results/formal/early_mas_architecture_motivation/manifests/code_snapshot_manifest.csv"
|
| 13 |
+
],
|
| 14 |
+
"output_paths": [
|
| 15 |
+
"results/formal/early_mas_architecture_motivation/manifests/private_release_shards.csv",
|
| 16 |
+
"results/formal/early_mas_architecture_motivation/audits/private_release_verification.json"
|
| 17 |
+
],
|
| 18 |
+
"run_class": "formal"
|
| 19 |
+
}
|
data/external/results/formal/early_mas_architecture_motivation/audits/provenance_and_qa.md
CHANGED
|
@@ -1,27 +1,25 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
-
##
|
| 4 |
|
| 5 |
-
-
|
| 6 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
##
|
| 9 |
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
-
|
|
|
|
| 15 |
|
| 16 |
-
##
|
| 17 |
|
| 18 |
-
|
| 19 |
-
- `med-agent/results_concurrency50_tuned/`: tuned consensus topology sweep, `15,750` rows.
|
| 20 |
-
- `med-agent/results_concurrency50_fixed6/`: fixed-six-round topology sweep, `15,750` rows.
|
| 21 |
-
- `med_board/reports/real_llm_full_3seed_summary.md`: full 3-seed protocol summary, `29,400` analyzed rows.
|
| 22 |
-
- `med_board/runs/gain_bottleneck_analysis/gain_bottleneck_report.json`: oracle-gap and follow-majority decomposition.
|
| 23 |
-
- `med_board/runs/mechanism_pilot_500_analysis/mechanism_pilot_report.json`: mechanism-pilot condition summary, `12,000` rows.
|
| 24 |
-
|
| 25 |
-
## Use Limits
|
| 26 |
-
|
| 27 |
-
These results motivate the selection-bottleneck question. They should not be mixed with the primary five-benchmark selector-boundary evidence as if they were generated under the same protocol.
|
|
|
|
| 1 |
+
# Medical MAS Formal Analysis
|
| 2 |
|
| 3 |
+
## Coverage
|
| 4 |
|
| 5 |
+
- med-agent trial rows: 47,250 across three run families
|
| 6 |
+
- med-agent topology summary rows: 15
|
| 7 |
+
- med-board protocol rows: 29,400 across 2,450 questions and three seeds
|
| 8 |
+
- med-board protocol summary rows: 4
|
| 9 |
+
- oracle-gap rows: 4
|
| 10 |
+
- judge-behaviour rows: 4
|
| 11 |
+
- oracle and judge inputs: 29,400 text-free case-protocol-seed records derived from raw outputs
|
| 12 |
+
- legacy cross-check: raw-derived oracle and judge summaries exactly match the archived gain-bottleneck report
|
| 13 |
|
| 14 |
+
## Manuscript-facing checks
|
| 15 |
|
| 16 |
+
- single agent: 0.398776 accuracy, 1.0000x token ratio
|
| 17 |
+
- majority vote: 0.410612 accuracy, 4.9583x token ratio
|
| 18 |
+
- open committee: 0.422041 accuracy, 10.7264x token ratio
|
| 19 |
+
- anonymous evidence board: 0.418912 accuracy, 6.0682x token ratio
|
| 20 |
+
- open committee versus majority vote: 1.1429 percentage points, 95% CI 0.4218 to 1.9048 (10,000 question-cluster resamples, seed 46)
|
| 21 |
+
- anonymous evidence board versus majority vote: 0.8299 percentage points, 95% CI -0.0544 to 1.7415 (10,000 question-cluster resamples, seed 49)
|
| 22 |
|
| 23 |
+
## Evidence boundary
|
| 24 |
|
| 25 |
+
These archived experiments provide historical motivation for the selection bottleneck in Fig. 1a and Extended Data Fig. 1. They are not part of the later fixed-pool selector-boundary experiment family.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/external/results/formal/early_mas_architecture_motivation/audits/provenance_and_qa.metadata.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_kind": "analysis_auxiliary",
|
| 3 |
+
"command_mode": "early_mas_architecture_motivation",
|
| 4 |
+
"config_hash": "c27e24558091",
|
| 5 |
+
"config_path": "configs/analyses/early_mas_architecture_motivation.yaml",
|
| 6 |
+
"evidence_status": "complete",
|
| 7 |
+
"generated_at_utc": "2026-08-24T09:11:48.071341+00:00",
|
| 8 |
+
"git_commit": "67fc30b663ddd160845baa9a104ba9ca1a27c1f7",
|
| 9 |
+
"input_paths": [
|
| 10 |
+
"results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/baseline/all_results.csv",
|
| 11 |
+
"results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/tuned/all_results.csv",
|
| 12 |
+
"results/formal/early_mas_architecture_motivation/analysis_ready/med_agent/fixed6/all_results.csv",
|
| 13 |
+
"results/formal/early_mas_architecture_motivation/analysis_ready/med_board/protocol_results.csv",
|
| 14 |
+
"results/formal/early_mas_architecture_motivation/analysis_ready/med_board/oracle_trials.csv",
|
| 15 |
+
"results/formal/early_mas_architecture_motivation/analysis_ready/med_board/gain_bottleneck_report.json"
|
| 16 |
+
],
|
| 17 |
+
"output_paths": [
|
| 18 |
+
"results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_cost_accuracy_summary.csv",
|
| 19 |
+
"results/formal/early_mas_architecture_motivation/audits/provenance_and_qa.md",
|
| 20 |
+
"results/formal/early_mas_architecture_motivation/source_manifest.csv",
|
| 21 |
+
"results/formal/early_mas_architecture_motivation/summaries/med_agent_topology_summary.csv",
|
| 22 |
+
"results/formal/early_mas_architecture_motivation/summaries/med_agent_round_exit_distribution.csv",
|
| 23 |
+
"results/formal/early_mas_architecture_motivation/summaries/med_board_protocol_bootstrap_ci.csv",
|
| 24 |
+
"results/formal/early_mas_architecture_motivation/summaries/med_board_oracle_gap_summary.csv",
|
| 25 |
+
"results/formal/early_mas_architecture_motivation/summaries/med_board_judge_behavior_summary.csv",
|
| 26 |
+
"results/formal/early_mas_architecture_motivation/figure_sources/extended_data_fig1_source.csv"
|
| 27 |
+
],
|
| 28 |
+
"run_class": "formal"
|
| 29 |
+
}
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/pyproject.toml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "med-agent"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
requires-python = ">=3.12"
|
| 5 |
+
dependencies = [
|
| 6 |
+
"httpx>=0.20.0",
|
| 7 |
+
"datasets>=3.0.0",
|
| 8 |
+
"pydantic>=2.13.4",
|
| 9 |
+
]
|
| 10 |
+
|
| 11 |
+
[project.optional-dependencies]
|
| 12 |
+
dev = [
|
| 13 |
+
"pytest>=8.0.0",
|
| 14 |
+
"pytest-asyncio>=0.24.0",
|
| 15 |
+
]
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/pytest.ini
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[pytest]
|
| 2 |
+
testpaths = tests
|
| 3 |
+
markers =
|
| 4 |
+
integration: tests that require external services (LLM proxy, dataset download)
|
| 5 |
+
asyncio_mode = auto
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"""MAS topology comparison experiment."""
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/__main__.py
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# src/med_agent/__main__.py
|
| 2 |
+
import argparse
|
| 3 |
+
import logging
|
| 4 |
+
import os
|
| 5 |
+
import sys
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
|
| 8 |
+
from .config import ExperimentConfig
|
| 9 |
+
from .runner import run_experiment
|
| 10 |
+
from .metrics.collector import save_results_csv
|
| 11 |
+
from .metrics.analyzer import aggregate_results, print_summary
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def main():
|
| 15 |
+
parser = argparse.ArgumentParser(description="MAS Topology Comparison Experiment")
|
| 16 |
+
parser.add_argument("--model", default="deepseek-v4-flash-free")
|
| 17 |
+
parser.add_argument("--api-base", default="http://localhost:8000/v1")
|
| 18 |
+
parser.add_argument("--api-key", default=os.environ.get("OPENAI_API_KEY", ""))
|
| 19 |
+
parser.add_argument("--temperature", type=float, default=1.0)
|
| 20 |
+
parser.add_argument("--n-cases", type=int, default=50, help="Number of cases to run (0 = all)")
|
| 21 |
+
parser.add_argument("--n-trials", type=int, default=3, help="Trials per case per topology")
|
| 22 |
+
parser.add_argument("--max-rounds", type=int, default=10)
|
| 23 |
+
parser.add_argument("--topologies", nargs="+",
|
| 24 |
+
choices=["single", "star", "complete", "ring", "hierarchical"],
|
| 25 |
+
default=["star", "complete", "ring", "hierarchical"],
|
| 26 |
+
help="Topologies to test")
|
| 27 |
+
parser.add_argument("--seeds", nargs="+", type=int, default=[42, 123, 256])
|
| 28 |
+
parser.add_argument("--results-dir", default="results")
|
| 29 |
+
parser.add_argument("--log-level", default="INFO")
|
| 30 |
+
parser.add_argument("--resume", action="store_true", help="Skip already-completed cases")
|
| 31 |
+
parser.add_argument("--async", action="store_true", dest="use_async",
|
| 32 |
+
help="Use async parallel agent execution")
|
| 33 |
+
parser.add_argument("--concurrency", type=int, default=50,
|
| 34 |
+
help="Max concurrent cases/trials running in parallel")
|
| 35 |
+
parser.add_argument("--unanimous-mode", choices=["standard", "needs_confidence", "disabled"],
|
| 36 |
+
default="standard", help="Unanimous convergence mode")
|
| 37 |
+
parser.add_argument("--weight-majority-ratio", type=float, default=0.6,
|
| 38 |
+
help="Weight majority ratio threshold (0.0 to 1.0)")
|
| 39 |
+
parser.add_argument("--confidence-threshold", type=float, default=0.7,
|
| 40 |
+
help="Average confidence threshold (0.0 to 1.0)")
|
| 41 |
+
parser.add_argument("--disable-convergence", action="store_true",
|
| 42 |
+
help="Disable early convergence checking and force running all max rounds")
|
| 43 |
+
parser.add_argument("--randomize-round-0", action="store_true",
|
| 44 |
+
help="Generate random answers for Round 0 instead of calling the LLM API")
|
| 45 |
+
|
| 46 |
+
args = parser.parse_args()
|
| 47 |
+
|
| 48 |
+
logging.basicConfig(
|
| 49 |
+
level=getattr(logging, args.log_level.upper()),
|
| 50 |
+
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
|
| 51 |
+
)
|
| 52 |
+
# Suppress noisy httpx / datasets INFO logs
|
| 53 |
+
logging.getLogger("httpx").setLevel(logging.WARNING)
|
| 54 |
+
logging.getLogger("datasets").setLevel(logging.WARNING)
|
| 55 |
+
logger = logging.getLogger(__name__)
|
| 56 |
+
|
| 57 |
+
# Validate range limits
|
| 58 |
+
if not (0.0 <= args.weight_majority_ratio <= 1.0):
|
| 59 |
+
parser.error("--weight-majority-ratio must be between 0.0 and 1.0")
|
| 60 |
+
if not (0.0 <= args.confidence_threshold <= 1.0):
|
| 61 |
+
parser.error("--confidence-threshold must be between 0.0 and 1.0")
|
| 62 |
+
|
| 63 |
+
# Validate seeds vs n_trials
|
| 64 |
+
if args.n_trials > len(args.seeds):
|
| 65 |
+
logger.warning(f"n_trials={args.n_trials} > seeds={len(args.seeds)}, truncating to {len(args.seeds)}")
|
| 66 |
+
args.n_trials = len(args.seeds)
|
| 67 |
+
|
| 68 |
+
config = ExperimentConfig(
|
| 69 |
+
model=args.model,
|
| 70 |
+
api_base=args.api_base,
|
| 71 |
+
api_key=args.api_key,
|
| 72 |
+
temperature=args.temperature,
|
| 73 |
+
n_cases=args.n_cases if args.n_cases > 0 else None,
|
| 74 |
+
n_trials=args.n_trials,
|
| 75 |
+
max_rounds=args.max_rounds,
|
| 76 |
+
seeds=args.seeds,
|
| 77 |
+
results_dir=args.results_dir,
|
| 78 |
+
unanimous_mode=args.unanimous_mode,
|
| 79 |
+
weight_majority_ratio=args.weight_majority_ratio,
|
| 80 |
+
confidence_threshold=args.confidence_threshold,
|
| 81 |
+
disable_convergence=args.disable_convergence,
|
| 82 |
+
randomize_round_0=args.randomize_round_0,
|
| 83 |
+
resume=args.resume,
|
| 84 |
+
)
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
logger.info(f"Starting experiment: {args.n_cases} cases x {len(args.topologies)} topologies x {args.n_trials} trials")
|
| 88 |
+
logger.info(f"Model: {args.model} | Temp: {args.temperature}")
|
| 89 |
+
|
| 90 |
+
if args.use_async:
|
| 91 |
+
import asyncio
|
| 92 |
+
from .runner import run_single_case_async
|
| 93 |
+
from .data.loader import load_cases
|
| 94 |
+
from .types import TopologyResult
|
| 95 |
+
import json
|
| 96 |
+
|
| 97 |
+
cases = load_cases(config)
|
| 98 |
+
os.makedirs(config.results_dir, exist_ok=True)
|
| 99 |
+
|
| 100 |
+
sem = asyncio.Semaphore(args.concurrency)
|
| 101 |
+
all_results: dict[str, list] = {t: [] for t in args.topologies}
|
| 102 |
+
|
| 103 |
+
async def run_task(case, case_idx, topology, trial_idx, seed):
|
| 104 |
+
result_path = Path(config.results_dir) / topology / f"{case.id}_seed{seed}.json"
|
| 105 |
+
if args.resume and result_path.exists():
|
| 106 |
+
logger.info(f" [{topology}] Case {case_idx+1}/{len(cases)} (seed={seed}): already done, skipping")
|
| 107 |
+
try:
|
| 108 |
+
with open(result_path) as f:
|
| 109 |
+
data = json.load(f)
|
| 110 |
+
return topology, TopologyResult.from_dict(data)
|
| 111 |
+
except Exception as e:
|
| 112 |
+
logger.warning(f"Failed to load checkpoint {result_path}: {e}. Re-running...")
|
| 113 |
+
|
| 114 |
+
async with sem:
|
| 115 |
+
logger.info(f" [{topology}] Case {case_idx+1}/{len(cases)} (seed={seed}) starting...")
|
| 116 |
+
try:
|
| 117 |
+
result = await run_single_case_async(case, topology, seed, config)
|
| 118 |
+
except Exception as e:
|
| 119 |
+
logger.error(f" [{topology}] Case {case.id} FAILED: {e}")
|
| 120 |
+
result = TopologyResult(
|
| 121 |
+
case_id=case.id, topology=topology, seed=seed,
|
| 122 |
+
ground_truth=case.label, system_output="", accuracy=0.0,
|
| 123 |
+
rounds_to_converge=config.max_rounds, convergence_type="error",
|
| 124 |
+
total_tokens=0, avg_confidence=0.0,
|
| 125 |
+
confidence_history={}, agent_final_outputs={},
|
| 126 |
+
conversation_history=[], error=str(e),
|
| 127 |
+
)
|
| 128 |
+
|
| 129 |
+
# Save checkpoint
|
| 130 |
+
try:
|
| 131 |
+
result_path.parent.mkdir(parents=True, exist_ok=True)
|
| 132 |
+
with open(result_path, "w") as f:
|
| 133 |
+
json.dump(result.to_dict(), f, indent=2)
|
| 134 |
+
except Exception as e:
|
| 135 |
+
logger.error(f"Failed to save checkpoint for {case.id}: {e}")
|
| 136 |
+
|
| 137 |
+
logger.info(f" [{topology}] Case {case_idx+1}/{len(cases)} (seed={seed}) completed.")
|
| 138 |
+
return topology, result
|
| 139 |
+
|
| 140 |
+
# Build list of all coroutines
|
| 141 |
+
tasks = []
|
| 142 |
+
for case_idx, case in enumerate(cases):
|
| 143 |
+
for topology in args.topologies:
|
| 144 |
+
for trial_idx, seed in enumerate(config.seeds[:config.n_trials]):
|
| 145 |
+
tasks.append(run_task(case, case_idx, topology, trial_idx, seed))
|
| 146 |
+
|
| 147 |
+
loop = asyncio.new_event_loop()
|
| 148 |
+
asyncio.set_event_loop(loop)
|
| 149 |
+
try:
|
| 150 |
+
# Run all tasks concurrently
|
| 151 |
+
results = loop.run_until_complete(asyncio.gather(*tasks))
|
| 152 |
+
finally:
|
| 153 |
+
# Explicitly close async clients inside the active loop
|
| 154 |
+
from .agent import Agent
|
| 155 |
+
async def close_async_clients():
|
| 156 |
+
for client in list(Agent._async_client_cache.values()):
|
| 157 |
+
try:
|
| 158 |
+
await client.aclose()
|
| 159 |
+
except Exception:
|
| 160 |
+
pass
|
| 161 |
+
try:
|
| 162 |
+
loop.run_until_complete(close_async_clients())
|
| 163 |
+
except Exception:
|
| 164 |
+
pass
|
| 165 |
+
loop.close()
|
| 166 |
+
|
| 167 |
+
# Group results by topology
|
| 168 |
+
for topology, result in results:
|
| 169 |
+
all_results[topology].append(result)
|
| 170 |
+
else:
|
| 171 |
+
all_results = run_experiment(config, topologies=args.topologies)
|
| 172 |
+
|
| 173 |
+
# Filter to requested topologies
|
| 174 |
+
filtered = {t: all_results.get(t, []) for t in args.topologies}
|
| 175 |
+
|
| 176 |
+
# Save CSV
|
| 177 |
+
csv_path = Path(args.results_dir) / "all_results.csv"
|
| 178 |
+
save_results_csv(filtered, csv_path)
|
| 179 |
+
logger.info(f"Results saved to {csv_path}")
|
| 180 |
+
|
| 181 |
+
# Print summary
|
| 182 |
+
summary = aggregate_results(filtered)
|
| 183 |
+
print_summary(summary)
|
| 184 |
+
|
| 185 |
+
# Save summary JSON
|
| 186 |
+
import json
|
| 187 |
+
summary_path = Path(args.results_dir) / "summary.json"
|
| 188 |
+
with open(summary_path, "w") as f:
|
| 189 |
+
json.dump(summary, f, indent=2)
|
| 190 |
+
logger.info(f"Summary saved to {summary_path}")
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
if __name__ == "__main__":
|
| 194 |
+
main()
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/agent.py
ADDED
|
@@ -0,0 +1,422 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# src/med_agent/agent.py
|
| 2 |
+
import atexit
|
| 3 |
+
import asyncio
|
| 4 |
+
import json
|
| 5 |
+
import logging
|
| 6 |
+
import threading
|
| 7 |
+
import httpx
|
| 8 |
+
from pydantic import BaseModel, Field, field_validator, ValidationInfo
|
| 9 |
+
from .config import ExperimentConfig
|
| 10 |
+
from .types import AgentOutput, AgentMessage
|
| 11 |
+
|
| 12 |
+
logger = logging.getLogger(__name__)
|
| 13 |
+
|
| 14 |
+
MAX_RETRIES = 3
|
| 15 |
+
|
| 16 |
+
SYSTEM_PROMPT = (
|
| 17 |
+
"You are a doctor. Analyze the clinical case, choose the best answer from the options, "
|
| 18 |
+
"and provide your confidence level and supporting evidence.\n\n"
|
| 19 |
+
"Respond in JSON format with exactly three fields:\n"
|
| 20 |
+
' "answer": the letter of your chosen option (A-J)\n'
|
| 21 |
+
' "confidence": a float indicating how certain you are. Note: in the initial round (Round 0), you must set your confidence to a value between 0.0 and 0.5 (inclusive) because you have not yet discussed the case with colleagues. In later rounds, your confidence can go up to 1.0.\n'
|
| 22 |
+
' "evidence": a brief summary of the key clinical findings supporting your diagnosis\n\n'
|
| 23 |
+
"Example: {\"answer\": \"C\", \"confidence\": 0.45, \"evidence\": \"Patient presents with ...\"}"
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
RETRY_PROMPT = (
|
| 27 |
+
"Your previous response was not valid JSON. Respond with valid JSON containing exactly "
|
| 28 |
+
'three fields: "answer" (A-J), "confidence" (0.0-1.0), "evidence" (string). '
|
| 29 |
+
'Example: {"answer": "C", "confidence": 0.85, "evidence": "Key findings summary"}'
|
| 30 |
+
)
|
| 31 |
+
|
| 32 |
+
RETRY_PROMPT_ROUND_0 = (
|
| 33 |
+
"Your previous response was invalid. In the initial round (Round 0), you must set "
|
| 34 |
+
'"confidence" to a value between 0.0 and 0.5 (inclusive). '
|
| 35 |
+
'Respond with valid JSON containing exactly three fields: "answer" (A-J), "confidence" (0.0-0.5), "evidence" (string). '
|
| 36 |
+
'Example: {"answer": "C", "confidence": 0.45, "evidence": "Key findings summary"}'
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
class ResponseModel(BaseModel):
|
| 42 |
+
"""Pydantic model for LLM output validation."""
|
| 43 |
+
answer: str = Field(...)
|
| 44 |
+
confidence: float = Field(..., ge=0.0, le=1.0)
|
| 45 |
+
evidence: str = Field(...)
|
| 46 |
+
|
| 47 |
+
@field_validator('answer')
|
| 48 |
+
@classmethod
|
| 49 |
+
def validate_answer(cls, v: str, info: ValidationInfo) -> str:
|
| 50 |
+
context = info.context
|
| 51 |
+
if context and "valid_options" in context:
|
| 52 |
+
valid = context["valid_options"]
|
| 53 |
+
if valid:
|
| 54 |
+
val = v.strip().upper()
|
| 55 |
+
if val in valid:
|
| 56 |
+
return val
|
| 57 |
+
raise ValueError(f"Answer must be one of: {valid}. Got: '{v}'")
|
| 58 |
+
return v
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
class ResponseModelRound0(BaseModel):
|
| 62 |
+
"""Pydantic model for LLM output validation at round 0."""
|
| 63 |
+
answer: str = Field(...)
|
| 64 |
+
confidence: float = Field(..., ge=0.0, le=0.5)
|
| 65 |
+
evidence: str = Field(...)
|
| 66 |
+
|
| 67 |
+
@field_validator('answer')
|
| 68 |
+
@classmethod
|
| 69 |
+
def validate_answer(cls, v: str, info: ValidationInfo) -> str:
|
| 70 |
+
context = info.context
|
| 71 |
+
if context and "valid_options" in context:
|
| 72 |
+
valid = context["valid_options"]
|
| 73 |
+
if valid:
|
| 74 |
+
val = v.strip().upper()
|
| 75 |
+
if val in valid:
|
| 76 |
+
return val
|
| 77 |
+
raise ValueError(f"Answer must be one of: {valid}. Got: '{v}'")
|
| 78 |
+
return v
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
class Agent:
|
| 83 |
+
_sync_client_cache: dict[tuple[str, str], httpx.Client] = {}
|
| 84 |
+
_async_client_cache: dict[tuple[str, str], httpx.AsyncClient] = {}
|
| 85 |
+
_sync_lock = threading.Lock()
|
| 86 |
+
_async_lock = threading.Lock()
|
| 87 |
+
|
| 88 |
+
def __init__(self, agent_id: str, config: ExperimentConfig, seed: int):
|
| 89 |
+
self.agent_id = agent_id
|
| 90 |
+
self.config = config
|
| 91 |
+
self.seed = seed
|
| 92 |
+
self.valid_options: list[str] = []
|
| 93 |
+
self.messages: list[dict] = [
|
| 94 |
+
{"role": "system", "content": SYSTEM_PROMPT}
|
| 95 |
+
]
|
| 96 |
+
|
| 97 |
+
@property
|
| 98 |
+
def client(self) -> httpx.Client:
|
| 99 |
+
cache_key = (self.config.api_base, self.config.api_key)
|
| 100 |
+
if cache_key not in self._sync_client_cache:
|
| 101 |
+
with self._sync_lock:
|
| 102 |
+
if cache_key not in self._sync_client_cache:
|
| 103 |
+
self._sync_client_cache[cache_key] = httpx.Client(timeout=300.0)
|
| 104 |
+
return self._sync_client_cache[cache_key]
|
| 105 |
+
|
| 106 |
+
@property
|
| 107 |
+
def async_client(self) -> httpx.AsyncClient:
|
| 108 |
+
cache_key = (self.config.api_base, self.config.api_key)
|
| 109 |
+
if cache_key not in self._async_client_cache:
|
| 110 |
+
with self._async_lock:
|
| 111 |
+
if cache_key not in self._async_client_cache:
|
| 112 |
+
limits = httpx.Limits(max_connections=500, max_keepalive_connections=100)
|
| 113 |
+
self._async_client_cache[cache_key] = httpx.AsyncClient(limits=limits, timeout=300.0)
|
| 114 |
+
return self._async_client_cache[cache_key]
|
| 115 |
+
|
| 116 |
+
def add_case(self, question: str, options: dict[str, str]):
|
| 117 |
+
"""Inject the clinical case at round 0."""
|
| 118 |
+
self.valid_options = sorted([k.strip().upper() for k in options.keys() if k.strip()])
|
| 119 |
+
options_text = "\n".join(f"{k}. {v}" for k, v in sorted(options.items()) if v.strip())
|
| 120 |
+
case_prompt = f"## Clinical Case\n\n{question}\n\n## Options\n\n{options_text}"
|
| 121 |
+
self.messages.append({"role": "user", "content": case_prompt})
|
| 122 |
+
|
| 123 |
+
def add_messages(self, new_messages: list[AgentMessage]):
|
| 124 |
+
"""Add routed messages from other agents to conversation history."""
|
| 125 |
+
if not new_messages:
|
| 126 |
+
return
|
| 127 |
+
lines = []
|
| 128 |
+
for m in new_messages:
|
| 129 |
+
o = m.output
|
| 130 |
+
lines.append(
|
| 131 |
+
f"--- Dr. {m.agent_id} (Round {m.round}) ---\n"
|
| 132 |
+
f"Answer: {o.answer} | Confidence: {o.confidence:.2f}\n"
|
| 133 |
+
f"Evidence: {o.evidence}"
|
| 134 |
+
)
|
| 135 |
+
lines_text = "\n\n".join(lines)
|
| 136 |
+
content = (
|
| 137 |
+
"You see the following opinions from your colleagues:\n\n"
|
| 138 |
+
f"{lines_text}\n\n"
|
| 139 |
+
"Please critically evaluate these opinions based on objective clinical criteria. Pay attention to:\n"
|
| 140 |
+
"1. Clinical details or diagnostic logic presented by your colleagues.\n"
|
| 141 |
+
"2. The strengths and weaknesses of each argument.\n"
|
| 142 |
+
"CRITICAL RULES:\n"
|
| 143 |
+
"- Independently assess all arguments. Update your answer if you are convinced by stronger, more valid clinical evidence or reasoning.\n"
|
| 144 |
+
"- In your JSON 'evidence' field, briefly state your evaluation of the different viewpoints and justify your final choice."
|
| 145 |
+
)
|
| 146 |
+
self.messages.append({"role": "user", "content": content})
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
@staticmethod
|
| 150 |
+
def _extract_json(text: str) -> str | None:
|
| 151 |
+
"""Find and extract a JSON object from text.
|
| 152 |
+
|
| 153 |
+
Handles thinking block, markdown code block formatting, or conversational text.
|
| 154 |
+
"""
|
| 155 |
+
import re
|
| 156 |
+
import json
|
| 157 |
+
|
| 158 |
+
# Find all '{' indices in the text
|
| 159 |
+
brace_indices = [m.start() for m in re.finditer(r"\{", text)]
|
| 160 |
+
if not brace_indices:
|
| 161 |
+
return None
|
| 162 |
+
|
| 163 |
+
# Find the last '}'
|
| 164 |
+
end_idx = text.rfind("}")
|
| 165 |
+
if end_idx < 0:
|
| 166 |
+
return None
|
| 167 |
+
|
| 168 |
+
# Try candidates from left to right to find the outer valid JSON object
|
| 169 |
+
for start_idx in brace_indices:
|
| 170 |
+
if start_idx > end_idx:
|
| 171 |
+
break
|
| 172 |
+
candidate = text[start_idx : end_idx + 1]
|
| 173 |
+
try:
|
| 174 |
+
json.loads(candidate)
|
| 175 |
+
return candidate
|
| 176 |
+
except json.JSONDecodeError:
|
| 177 |
+
continue
|
| 178 |
+
|
| 179 |
+
return None
|
| 180 |
+
|
| 181 |
+
def _parse_response(self, content: str, round_idx: int = 0) -> AgentOutput | None:
|
| 182 |
+
"""Parse LLM response with Pydantic validation. Returns None on failure."""
|
| 183 |
+
extracted = self._extract_json(content)
|
| 184 |
+
if extracted:
|
| 185 |
+
content = extracted
|
| 186 |
+
|
| 187 |
+
context = {"valid_options": self.valid_options} if self.valid_options else None
|
| 188 |
+
|
| 189 |
+
try:
|
| 190 |
+
if round_idx == 0:
|
| 191 |
+
parsed = ResponseModelRound0.model_validate_json(content, context=context)
|
| 192 |
+
else:
|
| 193 |
+
parsed = ResponseModel.model_validate_json(content, context=context)
|
| 194 |
+
return AgentOutput(
|
| 195 |
+
answer=parsed.answer,
|
| 196 |
+
confidence=max(0.0, min(1.0, parsed.confidence)),
|
| 197 |
+
evidence=parsed.evidence,
|
| 198 |
+
)
|
| 199 |
+
except Exception:
|
| 200 |
+
return None
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
def _llm_call(self) -> tuple[str, int]:
|
| 204 |
+
"""Make a synchronous LLM call via HTTP POST."""
|
| 205 |
+
headers = {
|
| 206 |
+
"Authorization": f"Bearer {self.config.api_key}",
|
| 207 |
+
"Content-Type": "application/json",
|
| 208 |
+
}
|
| 209 |
+
payload = {
|
| 210 |
+
"model": self.config.model,
|
| 211 |
+
"messages": self.messages,
|
| 212 |
+
"temperature": self.config.temperature,
|
| 213 |
+
"max_tokens": self.config.max_tokens,
|
| 214 |
+
"seed": self.seed,
|
| 215 |
+
}
|
| 216 |
+
url = self.config.api_base
|
| 217 |
+
if not url.endswith("/"):
|
| 218 |
+
url += "/"
|
| 219 |
+
url += "chat/completions"
|
| 220 |
+
|
| 221 |
+
try:
|
| 222 |
+
response = self.client.post(url, headers=headers, json=payload)
|
| 223 |
+
response.raise_for_status()
|
| 224 |
+
data = response.json()
|
| 225 |
+
msg = data["choices"][0]["message"]
|
| 226 |
+
content = (msg.get("content") or "").strip()
|
| 227 |
+
tokens = data.get("usage", {}).get("total_tokens", 0)
|
| 228 |
+
|
| 229 |
+
# Reasoning model support
|
| 230 |
+
if not content:
|
| 231 |
+
rc = msg.get("reasoning_content") or ""
|
| 232 |
+
extracted = self._extract_json(rc)
|
| 233 |
+
if extracted:
|
| 234 |
+
content = extracted
|
| 235 |
+
|
| 236 |
+
return content or "{}", tokens
|
| 237 |
+
except Exception as e:
|
| 238 |
+
logger.error(f"Agent {self.agent_id} API error (sync): {repr(e)}")
|
| 239 |
+
return "{}", 0
|
| 240 |
+
|
| 241 |
+
async def _llm_call_async(self) -> tuple[str, int]:
|
| 242 |
+
"""Make an asynchronous LLM call via HTTP POST."""
|
| 243 |
+
headers = {
|
| 244 |
+
"Authorization": f"Bearer {self.config.api_key}",
|
| 245 |
+
"Content-Type": "application/json",
|
| 246 |
+
}
|
| 247 |
+
payload = {
|
| 248 |
+
"model": self.config.model,
|
| 249 |
+
"messages": self.messages,
|
| 250 |
+
"temperature": self.config.temperature,
|
| 251 |
+
"max_tokens": self.config.max_tokens,
|
| 252 |
+
"seed": self.seed,
|
| 253 |
+
}
|
| 254 |
+
url = self.config.api_base
|
| 255 |
+
if not url.endswith("/"):
|
| 256 |
+
url += "/"
|
| 257 |
+
url += "chat/completions"
|
| 258 |
+
|
| 259 |
+
try:
|
| 260 |
+
response = await self.async_client.post(url, headers=headers, json=payload)
|
| 261 |
+
response.raise_for_status()
|
| 262 |
+
data = response.json()
|
| 263 |
+
msg = data["choices"][0]["message"]
|
| 264 |
+
content = (msg.get("content") or "").strip()
|
| 265 |
+
tokens = data.get("usage", {}).get("total_tokens", 0)
|
| 266 |
+
|
| 267 |
+
# Reasoning model support
|
| 268 |
+
if not content:
|
| 269 |
+
rc = msg.get("reasoning_content") or ""
|
| 270 |
+
extracted = self._extract_json(rc)
|
| 271 |
+
if extracted:
|
| 272 |
+
content = extracted
|
| 273 |
+
|
| 274 |
+
return content or "{}", tokens
|
| 275 |
+
except Exception as e:
|
| 276 |
+
logger.error(f"Agent {self.agent_id} API error (async): {repr(e)}")
|
| 277 |
+
return "{}", 0
|
| 278 |
+
|
| 279 |
+
def respond(self, round_idx: int = 0) -> AgentMessage:
|
| 280 |
+
"""Call the LLM with retry on parse failure. Returns parsed response."""
|
| 281 |
+
content = ""
|
| 282 |
+
total_tokens = 0
|
| 283 |
+
original_msg_len = len(self.messages)
|
| 284 |
+
|
| 285 |
+
for attempt in range(MAX_RETRIES):
|
| 286 |
+
if attempt > 0:
|
| 287 |
+
# Maintain correct role alternation: user -> assistant (invalid response) -> user (retry prompt)
|
| 288 |
+
self.messages.append({"role": "assistant", "content": content or "{}"})
|
| 289 |
+
options_str = "/".join(self.valid_options) if self.valid_options else "A-J"
|
| 290 |
+
example_ans = self.valid_options[0] if self.valid_options else "C"
|
| 291 |
+
if round_idx == 0:
|
| 292 |
+
retry_prompt = (
|
| 293 |
+
"Your previous response was invalid. In the initial round (Round 0), you must set "
|
| 294 |
+
'"confidence" to a value between 0.0 and 0.5 (inclusive). '
|
| 295 |
+
f'Respond with valid JSON containing exactly three fields: "answer" ({options_str}), "confidence" (0.0-0.5), "evidence" (string). '
|
| 296 |
+
f'Example: {{"answer": "{example_ans}", "confidence": 0.45, "evidence": "Key findings summary"}}'
|
| 297 |
+
)
|
| 298 |
+
else:
|
| 299 |
+
retry_prompt = (
|
| 300 |
+
"Your previous response was not valid JSON or the answer was not one of the allowed options. "
|
| 301 |
+
f'Respond with valid JSON containing exactly three fields: "answer" ({options_str}), "confidence" (0.0-1.0), "evidence" (string). '
|
| 302 |
+
f'Example: {{"answer": "{example_ans}", "confidence": 0.85, "evidence": "Key findings summary"}}'
|
| 303 |
+
)
|
| 304 |
+
self.messages.append({"role": "user", "content": retry_prompt})
|
| 305 |
+
|
| 306 |
+
content, tokens = self._llm_call()
|
| 307 |
+
total_tokens += tokens
|
| 308 |
+
output = self._parse_response(content, round_idx=round_idx)
|
| 309 |
+
if output is not None:
|
| 310 |
+
break
|
| 311 |
+
logger.warning(f"Agent {self.agent_id}: retry {attempt + 1}/{MAX_RETRIES} — parse failed")
|
| 312 |
+
else:
|
| 313 |
+
# Max retries exhausted — use fallback
|
| 314 |
+
logger.error(f"Agent {self.agent_id}: all {MAX_RETRIES} retries exhausted, using fallback")
|
| 315 |
+
fallback_ans = self.valid_options[0] if self.valid_options else "A"
|
| 316 |
+
output = AgentOutput(answer=fallback_ans, confidence=0.0, evidence="")
|
| 317 |
+
|
| 318 |
+
# Rollback temporary retry messages to avoid polluting the agent's long-term history
|
| 319 |
+
self.messages = self.messages[:original_msg_len]
|
| 320 |
+
|
| 321 |
+
# Add own response to history
|
| 322 |
+
self.messages.append({
|
| 323 |
+
"role": "assistant",
|
| 324 |
+
"content": json.dumps({
|
| 325 |
+
"answer": output.answer,
|
| 326 |
+
"confidence": output.confidence,
|
| 327 |
+
"evidence": output.evidence,
|
| 328 |
+
}),
|
| 329 |
+
})
|
| 330 |
+
|
| 331 |
+
return AgentMessage(
|
| 332 |
+
agent_id=self.agent_id,
|
| 333 |
+
round=round_idx,
|
| 334 |
+
output=output,
|
| 335 |
+
tokens=total_tokens,
|
| 336 |
+
)
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
async def respond_async(self, round_idx: int = 0) -> AgentMessage:
|
| 340 |
+
"""Async version of respond() using non-blocking HTTP requests."""
|
| 341 |
+
content = ""
|
| 342 |
+
total_tokens = 0
|
| 343 |
+
original_msg_len = len(self.messages)
|
| 344 |
+
|
| 345 |
+
for attempt in range(MAX_RETRIES):
|
| 346 |
+
if attempt > 0:
|
| 347 |
+
# Maintain correct role alternation: user -> assistant (invalid response) -> user (retry prompt)
|
| 348 |
+
self.messages.append({"role": "assistant", "content": content or "{}"})
|
| 349 |
+
options_str = "/".join(self.valid_options) if self.valid_options else "A-J"
|
| 350 |
+
example_ans = self.valid_options[0] if self.valid_options else "C"
|
| 351 |
+
if round_idx == 0:
|
| 352 |
+
retry_prompt = (
|
| 353 |
+
"Your previous response was invalid. In the initial round (Round 0), you must set "
|
| 354 |
+
'"confidence" to a value between 0.0 and 0.5 (inclusive). '
|
| 355 |
+
f'Respond with valid JSON containing exactly three fields: "answer" ({options_str}), "confidence" (0.0-0.5), "evidence" (string). '
|
| 356 |
+
f'Example: {{"answer": "{example_ans}", "confidence": 0.45, "evidence": "Key findings summary"}}'
|
| 357 |
+
)
|
| 358 |
+
else:
|
| 359 |
+
retry_prompt = (
|
| 360 |
+
"Your previous response was not valid JSON or the answer was not one of the allowed options. "
|
| 361 |
+
f'Respond with valid JSON containing exactly three fields: "answer" ({options_str}), "confidence" (0.0-1.0), "evidence" (string). '
|
| 362 |
+
f'Example: {{"answer": "{example_ans}", "confidence": 0.85, "evidence": "Key findings summary"}}'
|
| 363 |
+
)
|
| 364 |
+
self.messages.append({"role": "user", "content": retry_prompt})
|
| 365 |
+
|
| 366 |
+
content, tokens = await self._llm_call_async()
|
| 367 |
+
total_tokens += tokens
|
| 368 |
+
output = self._parse_response(content, round_idx=round_idx)
|
| 369 |
+
if output is not None:
|
| 370 |
+
break
|
| 371 |
+
logger.warning(f"Agent {self.agent_id}: retry {attempt + 1}/{MAX_RETRIES} — parse failed")
|
| 372 |
+
else:
|
| 373 |
+
# Max retries exhausted — use fallback
|
| 374 |
+
logger.error(f"Agent {self.agent_id}: all {MAX_RETRIES} retries exhausted, using fallback")
|
| 375 |
+
fallback_ans = self.valid_options[0] if self.valid_options else "A"
|
| 376 |
+
output = AgentOutput(answer=fallback_ans, confidence=0.0, evidence="")
|
| 377 |
+
|
| 378 |
+
# Rollback temporary retry messages to avoid polluting the agent's long-term history
|
| 379 |
+
self.messages = self.messages[:original_msg_len]
|
| 380 |
+
|
| 381 |
+
# Add own response to history
|
| 382 |
+
self.messages.append({
|
| 383 |
+
"role": "assistant",
|
| 384 |
+
"content": json.dumps({
|
| 385 |
+
"answer": output.answer,
|
| 386 |
+
"confidence": output.confidence,
|
| 387 |
+
"evidence": output.evidence,
|
| 388 |
+
}),
|
| 389 |
+
})
|
| 390 |
+
|
| 391 |
+
return AgentMessage(
|
| 392 |
+
agent_id=self.agent_id,
|
| 393 |
+
round=round_idx,
|
| 394 |
+
output=output,
|
| 395 |
+
tokens=total_tokens,
|
| 396 |
+
)
|
| 397 |
+
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
@atexit.register
|
| 401 |
+
def cleanup_clients():
|
| 402 |
+
"""Close all cached HTTP clients on exit to release connection pools."""
|
| 403 |
+
# Close sync clients
|
| 404 |
+
for client in Agent._sync_client_cache.values():
|
| 405 |
+
try:
|
| 406 |
+
client.close()
|
| 407 |
+
except Exception:
|
| 408 |
+
pass
|
| 409 |
+
|
| 410 |
+
# Close async clients
|
| 411 |
+
for client in Agent._async_client_cache.values():
|
| 412 |
+
try:
|
| 413 |
+
try:
|
| 414 |
+
loop = asyncio.get_running_loop()
|
| 415 |
+
if loop.is_running():
|
| 416 |
+
loop.create_task(client.aclose())
|
| 417 |
+
else:
|
| 418 |
+
asyncio.run(client.aclose())
|
| 419 |
+
except RuntimeError:
|
| 420 |
+
asyncio.run(client.aclose())
|
| 421 |
+
except Exception:
|
| 422 |
+
pass
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/config.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from dataclasses import dataclass, field
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
@dataclass
|
| 6 |
+
class ExperimentConfig:
|
| 7 |
+
# LLM
|
| 8 |
+
model: str = "deepseek-v4-flash-free"
|
| 9 |
+
api_base: str = "http://localhost:8000/v1"
|
| 10 |
+
api_key: str = field(default_factory=lambda: os.environ.get("OPENAI_API_KEY", ""))
|
| 11 |
+
temperature: float = 1.0
|
| 12 |
+
max_tokens: int = 65536 # effectively unlimited for reasoning models
|
| 13 |
+
|
| 14 |
+
# Experiment
|
| 15 |
+
n_agents: int = 5
|
| 16 |
+
max_rounds: int = 10
|
| 17 |
+
n_trials: int = 3
|
| 18 |
+
seeds: list[int] = field(default_factory=lambda: [42, 123, 256])
|
| 19 |
+
|
| 20 |
+
# Convergence
|
| 21 |
+
confidence_threshold: float = 0.7
|
| 22 |
+
weight_majority_ratio: float = 0.6
|
| 23 |
+
unanimous_mode: str = "standard"
|
| 24 |
+
disable_convergence: bool = False
|
| 25 |
+
randomize_round_0: bool = False
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
# Dataset
|
| 29 |
+
dataset_name: str = "TsinghuaC3I/MedXpertQA"
|
| 30 |
+
dataset_config: str = "Text"
|
| 31 |
+
dataset_split: str = "test"
|
| 32 |
+
medical_task_filter: str = "Diagnosis"
|
| 33 |
+
n_cases: int = 50
|
| 34 |
+
dataset_revision: str | None = "main"
|
| 35 |
+
|
| 36 |
+
# Paths
|
| 37 |
+
results_dir: str = "results"
|
| 38 |
+
resume: bool = False
|
| 39 |
+
|
| 40 |
+
def __post_init__(self):
|
| 41 |
+
if not self.api_key:
|
| 42 |
+
raise ValueError("OPENAI_API_KEY must be set")
|
| 43 |
+
if not (0.0 <= self.weight_majority_ratio <= 1.0):
|
| 44 |
+
raise ValueError("weight_majority_ratio must be between 0.0 and 1.0")
|
| 45 |
+
if not (0.0 <= self.confidence_threshold <= 1.0):
|
| 46 |
+
raise ValueError("confidence_threshold must be between 0.0 and 1.0")
|
| 47 |
+
allowed_modes = ["standard", "needs_confidence", "disabled"]
|
| 48 |
+
if self.unanimous_mode not in allowed_modes:
|
| 49 |
+
raise ValueError(f"unanimous_mode must be one of {allowed_modes}")
|
| 50 |
+
if self.n_trials > len(self.seeds):
|
| 51 |
+
raise ValueError(f"n_trials ({self.n_trials}) cannot be greater than the number of available seeds ({len(self.seeds)})")
|
| 52 |
+
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/data/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
# src/med_agent/data/__init__.py
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/data/loader.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# src/med_agent/data/loader.py
|
| 2 |
+
import logging
|
| 3 |
+
from dataclasses import dataclass
|
| 4 |
+
from typing import Generator
|
| 5 |
+
from datasets import load_dataset
|
| 6 |
+
from ..config import ExperimentConfig
|
| 7 |
+
|
| 8 |
+
logger = logging.getLogger(__name__)
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
@dataclass
|
| 12 |
+
class DiagnosisCase:
|
| 13 |
+
id: str
|
| 14 |
+
question: str
|
| 15 |
+
options: dict[str, str]
|
| 16 |
+
label: str
|
| 17 |
+
medical_task: str
|
| 18 |
+
body_system: str
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def load_cases(config: ExperimentConfig) -> list[DiagnosisCase]:
|
| 22 |
+
"""Load MedXpertQA cases filtered by medical_task."""
|
| 23 |
+
logger.info(f"Loading {config.dataset_name} ({config.dataset_config})...")
|
| 24 |
+
ds = load_dataset(
|
| 25 |
+
config.dataset_name,
|
| 26 |
+
config.dataset_config,
|
| 27 |
+
split=config.dataset_split,
|
| 28 |
+
streaming=False,
|
| 29 |
+
revision=getattr(config, "dataset_revision", None),
|
| 30 |
+
)
|
| 31 |
+
|
| 32 |
+
cases: list[DiagnosisCase] = []
|
| 33 |
+
for example in ds:
|
| 34 |
+
if example["medical_task"] != config.medical_task_filter:
|
| 35 |
+
continue
|
| 36 |
+
# Clean options: remove empty ones
|
| 37 |
+
options = {k: v for k, v in example["options"].items() if v.strip()}
|
| 38 |
+
case = DiagnosisCase(
|
| 39 |
+
id=example["id"],
|
| 40 |
+
question=example["question"],
|
| 41 |
+
options=options,
|
| 42 |
+
label=example["label"],
|
| 43 |
+
medical_task=example["medical_task"],
|
| 44 |
+
body_system=example["body_system"],
|
| 45 |
+
)
|
| 46 |
+
cases.append(case)
|
| 47 |
+
if config.n_cases and len(cases) >= config.n_cases:
|
| 48 |
+
break
|
| 49 |
+
|
| 50 |
+
logger.info(f"Loaded {len(cases)} diagnosis cases")
|
| 51 |
+
return cases
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
# src/med_agent/metrics/__init__.py
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/analyzer.py
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# src/med_agent/metrics/analyzer.py
|
| 2 |
+
import logging
|
| 3 |
+
from collections import defaultdict
|
| 4 |
+
from typing import Any
|
| 5 |
+
from ..types import TopologyResult
|
| 6 |
+
|
| 7 |
+
logger = logging.getLogger(__name__)
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def aggregate_results(results: dict[str, list[TopologyResult]]) -> dict[str, dict[str, Any]]:
|
| 11 |
+
"""Aggregate per-topology results into summary statistics."""
|
| 12 |
+
summary: dict[str, dict[str, Any]] = {}
|
| 13 |
+
|
| 14 |
+
for topology, topology_results in results.items():
|
| 15 |
+
if not topology_results:
|
| 16 |
+
summary[topology] = {"error": "no results"}
|
| 17 |
+
continue
|
| 18 |
+
|
| 19 |
+
accuracies = [r.accuracy for r in topology_results]
|
| 20 |
+
rounds = [r.rounds_to_converge for r in topology_results]
|
| 21 |
+
tokens = [r.total_tokens for r in topology_results]
|
| 22 |
+
confs = [r.avg_confidence for r in topology_results]
|
| 23 |
+
conv_types = [r.convergence_type for r in topology_results]
|
| 24 |
+
errors = [r.error for r in topology_results if r.error]
|
| 25 |
+
|
| 26 |
+
# Convergence rate (excluding errors)
|
| 27 |
+
valid = [r for r in topology_results if r.error is None]
|
| 28 |
+
if valid:
|
| 29 |
+
n_converged = sum(1 for r in valid if r.convergence_type != "not_converged")
|
| 30 |
+
convergence_rate = n_converged / len(valid)
|
| 31 |
+
else:
|
| 32 |
+
convergence_rate = 0.0
|
| 33 |
+
|
| 34 |
+
# Count convergence types
|
| 35 |
+
type_counts = defaultdict(int)
|
| 36 |
+
for ct in conv_types:
|
| 37 |
+
type_counts[ct] += 1
|
| 38 |
+
|
| 39 |
+
summary[topology] = {
|
| 40 |
+
"n_cases": len(topology_results),
|
| 41 |
+
"n_errors": len(errors),
|
| 42 |
+
"accuracy_mean": _mean(accuracies),
|
| 43 |
+
"accuracy_std": _std(accuracies),
|
| 44 |
+
"rounds_mean": _mean(rounds),
|
| 45 |
+
"rounds_std": _std(rounds),
|
| 46 |
+
"tokens_mean": _mean(tokens),
|
| 47 |
+
"tokens_std": _std(tokens),
|
| 48 |
+
"confidence_mean": _mean(confs),
|
| 49 |
+
"confidence_std": _std(confs),
|
| 50 |
+
"convergence_rate": convergence_rate,
|
| 51 |
+
"convergence_type_counts": dict(type_counts),
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
return summary
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def print_summary(summary: dict[str, dict[str, Any]]):
|
| 58 |
+
"""Pretty-print the summary table."""
|
| 59 |
+
header = f"{'Topology':<15} {'Accuracy':<12} {'Rounds':<12} {'Tokens':<16} {'Confidence':<12} {'Conv Rate':<12}"
|
| 60 |
+
sep = "-" * len(header)
|
| 61 |
+
lines = [sep, header, sep]
|
| 62 |
+
|
| 63 |
+
for topology, s in summary.items():
|
| 64 |
+
if "error" in s:
|
| 65 |
+
lines.append(f"{topology:<15} ERROR: {s['error']}")
|
| 66 |
+
continue
|
| 67 |
+
lines.append(
|
| 68 |
+
f"{topology:<15}"
|
| 69 |
+
f"{s['accuracy_mean']:.1%}±{s['accuracy_std']:.1%} "
|
| 70 |
+
f"{s['rounds_mean']:.1f}±{s['rounds_std']:.1f} "
|
| 71 |
+
f"{s['tokens_mean']:.0f}±{s['tokens_std']:.0f} "
|
| 72 |
+
f"{s['confidence_mean']:.2f}±{s['confidence_std']:.2f} "
|
| 73 |
+
f"{s['convergence_rate']:.1%}"
|
| 74 |
+
)
|
| 75 |
+
|
| 76 |
+
lines.append(sep)
|
| 77 |
+
logger.info("\n" + "\n".join(lines))
|
| 78 |
+
print("\n".join(lines))
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
def _mean(values: list[float]) -> float:
|
| 82 |
+
return sum(values) / len(values) if values else 0.0
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def _std(values: list[float]) -> float:
|
| 86 |
+
if len(values) < 2:
|
| 87 |
+
return 0.0
|
| 88 |
+
m = _mean(values)
|
| 89 |
+
return (sum((v - m) ** 2 for v in values) / (len(values) - 1)) ** 0.5
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/metrics/collector.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# src/med_agent/metrics/collector.py
|
| 2 |
+
import csv
|
| 3 |
+
import json
|
| 4 |
+
import os
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from typing import Any
|
| 7 |
+
from ..types import TopologyResult
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def save_results_csv(results: dict[str, list[TopologyResult]], path: str | Path):
|
| 11 |
+
"""Save per-trial results to CSV for easy pandas analysis."""
|
| 12 |
+
path = Path(path)
|
| 13 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 14 |
+
|
| 15 |
+
rows = []
|
| 16 |
+
for topology, topology_results in results.items():
|
| 17 |
+
for r in topology_results:
|
| 18 |
+
rows.append({
|
| 19 |
+
"case_id": r.case_id,
|
| 20 |
+
"topology": r.topology,
|
| 21 |
+
"seed": r.seed,
|
| 22 |
+
"ground_truth": r.ground_truth,
|
| 23 |
+
"system_output": r.system_output,
|
| 24 |
+
"accuracy": r.accuracy,
|
| 25 |
+
"rounds_to_converge": r.rounds_to_converge,
|
| 26 |
+
"convergence_type": r.convergence_type,
|
| 27 |
+
"total_tokens": r.total_tokens,
|
| 28 |
+
"avg_confidence": r.avg_confidence,
|
| 29 |
+
"error": r.error or "",
|
| 30 |
+
})
|
| 31 |
+
|
| 32 |
+
if not rows:
|
| 33 |
+
return
|
| 34 |
+
|
| 35 |
+
with open(path, "w", newline="") as f:
|
| 36 |
+
writer = csv.DictWriter(f, fieldnames=rows[0].keys())
|
| 37 |
+
writer.writeheader()
|
| 38 |
+
writer.writerows(rows)
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/runner.py
ADDED
|
@@ -0,0 +1,404 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# src/med_agent/runner.py
|
| 2 |
+
import hashlib
|
| 3 |
+
import json
|
| 4 |
+
import logging
|
| 5 |
+
import os
|
| 6 |
+
import random
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
from typing import Optional
|
| 9 |
+
from .config import ExperimentConfig
|
| 10 |
+
from .types import AgentOutput, AgentMessage, TopologyResult
|
| 11 |
+
from .agent import Agent
|
| 12 |
+
from .data.loader import DiagnosisCase, load_cases
|
| 13 |
+
from .topologies import ROUTERS
|
| 14 |
+
|
| 15 |
+
logger = logging.getLogger(__name__)
|
| 16 |
+
|
| 17 |
+
AGENT_IDS = ["A0", "A1", "A2", "A3", "A4"]
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def _check_convergence(
|
| 21 |
+
agents_outputs: dict[str, AgentMessage],
|
| 22 |
+
config: ExperimentConfig,
|
| 23 |
+
) -> tuple[bool, Optional[str], str]:
|
| 24 |
+
"""Check three-tier convergence. Returns (converged, system_answer, convergence_type)."""
|
| 25 |
+
if not agents_outputs:
|
| 26 |
+
return False, None, "not_converged"
|
| 27 |
+
|
| 28 |
+
if getattr(config, "disable_convergence", False):
|
| 29 |
+
return False, None, "not_converged"
|
| 30 |
+
|
| 31 |
+
answers = {aid: msg.output for aid, msg in agents_outputs.items()}
|
| 32 |
+
unanimous_mode = getattr(config, "unanimous_mode", "standard")
|
| 33 |
+
|
| 34 |
+
# Tier 1: Unanimous (if not disabled)
|
| 35 |
+
is_unanimous = False
|
| 36 |
+
first_answer = None
|
| 37 |
+
if answers:
|
| 38 |
+
first_answer = list(answers.values())[0].answer
|
| 39 |
+
is_unanimous = all(o.answer == first_answer for o in answers.values())
|
| 40 |
+
|
| 41 |
+
if is_unanimous:
|
| 42 |
+
if unanimous_mode == "standard":
|
| 43 |
+
return True, first_answer, "unanimous"
|
| 44 |
+
elif unanimous_mode == "needs_confidence":
|
| 45 |
+
total_conf = sum(o.confidence for o in answers.values())
|
| 46 |
+
avg_conf = total_conf / len(answers) if answers else 0.0
|
| 47 |
+
if avg_conf >= config.confidence_threshold:
|
| 48 |
+
return True, first_answer, "unanimous_with_conf"
|
| 49 |
+
# Otherwise, proceed to Tier 2
|
| 50 |
+
elif unanimous_mode == "disabled":
|
| 51 |
+
pass # proceed to Tier 2
|
| 52 |
+
else:
|
| 53 |
+
logger.warning(
|
| 54 |
+
f"Unknown unanimous_mode: '{unanimous_mode}'. "
|
| 55 |
+
f"Falling back to standard unanimous convergence."
|
| 56 |
+
)
|
| 57 |
+
return True, first_answer, "unanimous"
|
| 58 |
+
|
| 59 |
+
# Tier 2: Weighted majority
|
| 60 |
+
total_weight = sum(o.confidence for o in answers.values())
|
| 61 |
+
if total_weight == 0:
|
| 62 |
+
return False, None, "not_converged"
|
| 63 |
+
|
| 64 |
+
vote_sums: dict[str, float] = {}
|
| 65 |
+
vote_confidences: dict[str, list[float]] = {}
|
| 66 |
+
for aid, o in answers.items():
|
| 67 |
+
vote_sums[o.answer] = vote_sums.get(o.answer, 0.0) + o.confidence
|
| 68 |
+
vote_confidences.setdefault(o.answer, []).append(o.confidence)
|
| 69 |
+
|
| 70 |
+
top_answer = max(vote_sums, key=vote_sums.get)
|
| 71 |
+
top_weight = vote_sums[top_answer]
|
| 72 |
+
|
| 73 |
+
top_conf_list = vote_confidences[top_answer]
|
| 74 |
+
top_avg_conf = sum(top_conf_list) / len(top_conf_list) if top_conf_list else 0.0
|
| 75 |
+
|
| 76 |
+
if (top_weight / total_weight) >= config.weight_majority_ratio and top_avg_conf >= config.confidence_threshold:
|
| 77 |
+
return True, top_answer, "weighted_majority"
|
| 78 |
+
|
| 79 |
+
return False, None, "not_converged"
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
def _tie_break(vote_sums: dict[str, float], agents_outputs: dict[str, AgentMessage]) -> str:
|
| 84 |
+
"""Break ties: highest single-agent confidence, then alphabetically."""
|
| 85 |
+
max_vote = max(vote_sums.values())
|
| 86 |
+
tied = [ans for ans, v in vote_sums.items() if v == max_vote]
|
| 87 |
+
if len(tied) == 1:
|
| 88 |
+
return tied[0]
|
| 89 |
+
|
| 90 |
+
# Among tied, find highest per-answer max confidence
|
| 91 |
+
max_conf_per_answer: dict[str, float] = {}
|
| 92 |
+
for ans in tied:
|
| 93 |
+
max_conf_per_answer[ans] = max(
|
| 94 |
+
(msg.output.confidence for msg in agents_outputs.values() if msg.output.answer == ans),
|
| 95 |
+
default=0.0,
|
| 96 |
+
)
|
| 97 |
+
best_max_conf = max(max_conf_per_answer.values())
|
| 98 |
+
best_tied = [ans for ans, c in max_conf_per_answer.items() if c == best_max_conf]
|
| 99 |
+
return min(best_tied) # alphabetical among remaining
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def _generate_random_round_0_msg(
|
| 103 |
+
agent: Agent,
|
| 104 |
+
case: DiagnosisCase,
|
| 105 |
+
seed: int,
|
| 106 |
+
config: ExperimentConfig,
|
| 107 |
+
) -> AgentMessage:
|
| 108 |
+
"""Generate a random Round 0 message deterministically and update agent messages."""
|
| 109 |
+
seed_str = f"{case.id}_{agent.agent_id}_{seed}"
|
| 110 |
+
seed_hash = int(hashlib.md5(seed_str.encode()).hexdigest(), 16)
|
| 111 |
+
rng = random.Random(seed_hash)
|
| 112 |
+
|
| 113 |
+
valid_options = sorted(list(case.options.keys()))
|
| 114 |
+
if not valid_options:
|
| 115 |
+
valid_options = ["A"]
|
| 116 |
+
ans = rng.choice(valid_options)
|
| 117 |
+
conf = round(rng.uniform(0.1, 0.5), 2)
|
| 118 |
+
evidence = "I have not read the patient case details yet. This initial choice and confidence score are randomly generated to establish a baseline for consensus testing."
|
| 119 |
+
|
| 120 |
+
output = AgentOutput(answer=ans, confidence=conf, evidence=evidence)
|
| 121 |
+
|
| 122 |
+
# Maintain conversational context (assistant role)
|
| 123 |
+
agent.messages.append({
|
| 124 |
+
"role": "assistant",
|
| 125 |
+
"content": json.dumps({
|
| 126 |
+
"answer": ans,
|
| 127 |
+
"confidence": conf,
|
| 128 |
+
"evidence": evidence,
|
| 129 |
+
})
|
| 130 |
+
})
|
| 131 |
+
|
| 132 |
+
return AgentMessage(
|
| 133 |
+
agent_id=agent.agent_id,
|
| 134 |
+
round=0,
|
| 135 |
+
output=output,
|
| 136 |
+
tokens=0,
|
| 137 |
+
)
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
def run_single_case(
|
| 141 |
+
case: DiagnosisCase,
|
| 142 |
+
topology: str,
|
| 143 |
+
seed: int,
|
| 144 |
+
config: ExperimentConfig,
|
| 145 |
+
) -> TopologyResult:
|
| 146 |
+
"""Run one case under one topology with one seed."""
|
| 147 |
+
route_fn = ROUTERS[topology]
|
| 148 |
+
agent_ids = ["A0"] if topology == "single" else AGENT_IDS
|
| 149 |
+
|
| 150 |
+
# Initialize agents
|
| 151 |
+
agents: list[Agent] = []
|
| 152 |
+
for i, aid in enumerate(agent_ids):
|
| 153 |
+
agent = Agent(aid, config, seed)
|
| 154 |
+
agent.add_case(case.question, case.options)
|
| 155 |
+
agents.append(agent)
|
| 156 |
+
|
| 157 |
+
all_messages: dict[str, list[AgentMessage]] = {aid: [] for aid in agent_ids}
|
| 158 |
+
confidence_history: dict[int, dict[str, float]] = {}
|
| 159 |
+
conversation_history: list[list[AgentMessage]] = []
|
| 160 |
+
|
| 161 |
+
# Round 0: initial independent responses
|
| 162 |
+
round_msgs: list[AgentMessage] = []
|
| 163 |
+
if getattr(config, "randomize_round_0", False):
|
| 164 |
+
for agent in agents:
|
| 165 |
+
msg = _generate_random_round_0_msg(agent, case, seed, config)
|
| 166 |
+
round_msgs.append(msg)
|
| 167 |
+
all_messages[agent.agent_id].append(msg)
|
| 168 |
+
else:
|
| 169 |
+
for agent in agents:
|
| 170 |
+
msg = agent.respond(0)
|
| 171 |
+
round_msgs.append(msg)
|
| 172 |
+
all_messages[agent.agent_id].append(msg)
|
| 173 |
+
conversation_history.append(list(round_msgs))
|
| 174 |
+
confidence_history[0] = {m.agent_id: m.output.confidence for m in round_msgs}
|
| 175 |
+
|
| 176 |
+
agents_outputs = {m.agent_id: m for m in round_msgs}
|
| 177 |
+
converged = False
|
| 178 |
+
answer = None
|
| 179 |
+
conv_type = "single" if topology == "single" else "not_converged"
|
| 180 |
+
|
| 181 |
+
# Rounds 1..max_rounds: route -> respond -> check convergence
|
| 182 |
+
for round_idx in range(1, config.max_rounds + 1):
|
| 183 |
+
if topology == "single":
|
| 184 |
+
break
|
| 185 |
+
|
| 186 |
+
# Route messages from previous round
|
| 187 |
+
visible = route_fn(all_messages, round_idx)
|
| 188 |
+
|
| 189 |
+
# Each agent receives routed messages (from ALL previous rounds, not just latest)
|
| 190 |
+
# Actually, add only new messages -- the routing function controls what's visible
|
| 191 |
+
for agent in agents:
|
| 192 |
+
new_msgs = visible.get(agent.agent_id, [])
|
| 193 |
+
# Filter to only messages the agent hasn't seen
|
| 194 |
+
seen_ids = {(m.agent_id, m.round) for m in all_messages[agent.agent_id]}
|
| 195 |
+
unseen = [m for m in new_msgs if (m.agent_id, m.round) not in seen_ids]
|
| 196 |
+
if unseen:
|
| 197 |
+
agent.add_messages(unseen)
|
| 198 |
+
|
| 199 |
+
# Agents respond in parallel (sequential for simplicity; parallel via asyncio later)
|
| 200 |
+
round_msgs = []
|
| 201 |
+
for agent in agents:
|
| 202 |
+
msg = agent.respond(round_idx)
|
| 203 |
+
round_msgs.append(msg)
|
| 204 |
+
all_messages[agent.agent_id].append(msg)
|
| 205 |
+
|
| 206 |
+
conversation_history.append(list(round_msgs))
|
| 207 |
+
confs = {m.agent_id: m.output.confidence for m in round_msgs}
|
| 208 |
+
confidence_history[round_idx] = confs
|
| 209 |
+
|
| 210 |
+
# Check convergence
|
| 211 |
+
agents_outputs = {m.agent_id: m for m in round_msgs}
|
| 212 |
+
converged, answer, conv_type = _check_convergence(agents_outputs, config)
|
| 213 |
+
if converged:
|
| 214 |
+
break
|
| 215 |
+
|
| 216 |
+
# If loop exhausted without convergence, fallback to weighted majority
|
| 217 |
+
if not converged and topology != "single":
|
| 218 |
+
# Weighted majority tie-break for final output
|
| 219 |
+
total_weight = sum(m.output.confidence for m in agents_outputs.values())
|
| 220 |
+
if total_weight > 0:
|
| 221 |
+
vote_sums: dict[str, float] = {}
|
| 222 |
+
for m in agents_outputs.values():
|
| 223 |
+
vote_sums[m.output.answer] = vote_sums.get(m.output.answer, 0.0) + m.output.confidence
|
| 224 |
+
answer = _tie_break(vote_sums, agents_outputs)
|
| 225 |
+
else:
|
| 226 |
+
answer = list(agents_outputs.values())[0].output.answer
|
| 227 |
+
conv_type = "not_converged"
|
| 228 |
+
elif topology == "single":
|
| 229 |
+
answer = list(agents_outputs.values())[0].output.answer
|
| 230 |
+
|
| 231 |
+
total_tokens = sum(m.tokens for msgs_list in all_messages.values() for m in msgs_list)
|
| 232 |
+
final_confs = [m.output.confidence for m in agents_outputs.values()]
|
| 233 |
+
avg_confidence = sum(final_confs) / len(final_confs) if final_confs else 0.0
|
| 234 |
+
|
| 235 |
+
n_rounds = len(conversation_history) - 1 # exclude round 0 (initial independent reasoning)
|
| 236 |
+
|
| 237 |
+
result = TopologyResult(
|
| 238 |
+
case_id=case.id,
|
| 239 |
+
topology=topology,
|
| 240 |
+
seed=seed,
|
| 241 |
+
ground_truth=case.label,
|
| 242 |
+
system_output=answer,
|
| 243 |
+
accuracy=1.0 if answer == case.label else 0.0,
|
| 244 |
+
rounds_to_converge=n_rounds,
|
| 245 |
+
convergence_type=conv_type,
|
| 246 |
+
total_tokens=total_tokens,
|
| 247 |
+
avg_confidence=avg_confidence,
|
| 248 |
+
confidence_history=confidence_history,
|
| 249 |
+
agent_final_outputs={aid: agents_outputs[aid].output for aid in agent_ids if aid in agents_outputs},
|
| 250 |
+
conversation_history=conversation_history,
|
| 251 |
+
)
|
| 252 |
+
return result
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
async def run_single_case_async(
|
| 256 |
+
case: DiagnosisCase,
|
| 257 |
+
topology: str,
|
| 258 |
+
seed: int,
|
| 259 |
+
config: ExperimentConfig,
|
| 260 |
+
) -> TopologyResult:
|
| 261 |
+
"""Async version with parallel agent execution per round."""
|
| 262 |
+
import asyncio
|
| 263 |
+
route_fn = ROUTERS[topology]
|
| 264 |
+
agent_ids = ["A0"] if topology == "single" else AGENT_IDS
|
| 265 |
+
|
| 266 |
+
agents: list[Agent] = []
|
| 267 |
+
for aid in agent_ids:
|
| 268 |
+
agent = Agent(aid, config, seed)
|
| 269 |
+
agent.add_case(case.question, case.options)
|
| 270 |
+
agents.append(agent)
|
| 271 |
+
|
| 272 |
+
all_messages: dict[str, list[AgentMessage]] = {aid: [] for aid in agent_ids}
|
| 273 |
+
confidence_history: dict[int, dict[str, float]] = {}
|
| 274 |
+
conversation_history: list[list[AgentMessage]] = []
|
| 275 |
+
|
| 276 |
+
# Round 0: parallel initial responses
|
| 277 |
+
if getattr(config, "randomize_round_0", False):
|
| 278 |
+
round_msgs = [
|
| 279 |
+
_generate_random_round_0_msg(agent, case, seed, config)
|
| 280 |
+
for agent in agents
|
| 281 |
+
]
|
| 282 |
+
else:
|
| 283 |
+
round_msgs = await asyncio.gather(*[agent.respond_async(0) for agent in agents])
|
| 284 |
+
for msg in round_msgs:
|
| 285 |
+
all_messages[msg.agent_id].append(msg)
|
| 286 |
+
conversation_history.append(list(round_msgs))
|
| 287 |
+
confidence_history[0] = {m.agent_id: m.output.confidence for m in round_msgs}
|
| 288 |
+
|
| 289 |
+
agents_outputs = {m.agent_id: m for m in round_msgs}
|
| 290 |
+
converged = False
|
| 291 |
+
answer = None
|
| 292 |
+
conv_type = "single" if topology == "single" else "not_converged"
|
| 293 |
+
|
| 294 |
+
# Rounds 1..max_rounds
|
| 295 |
+
for round_idx in range(1, config.max_rounds + 1):
|
| 296 |
+
if topology == "single":
|
| 297 |
+
break
|
| 298 |
+
|
| 299 |
+
visible = route_fn(all_messages, round_idx)
|
| 300 |
+
|
| 301 |
+
for agent in agents:
|
| 302 |
+
new_msgs = visible.get(agent.agent_id, [])
|
| 303 |
+
seen_ids = {(m.agent_id, m.round) for m in all_messages[agent.agent_id]}
|
| 304 |
+
unseen = [m for m in new_msgs if (m.agent_id, m.round) not in seen_ids]
|
| 305 |
+
if unseen:
|
| 306 |
+
agent.add_messages(unseen)
|
| 307 |
+
|
| 308 |
+
# Parallel agent responses
|
| 309 |
+
round_msgs = await asyncio.gather(*[agent.respond_async(round_idx) for agent in agents])
|
| 310 |
+
for msg in round_msgs:
|
| 311 |
+
all_messages[msg.agent_id].append(msg)
|
| 312 |
+
|
| 313 |
+
conversation_history.append(list(round_msgs))
|
| 314 |
+
confs = {m.agent_id: m.output.confidence for m in round_msgs}
|
| 315 |
+
confidence_history[round_idx] = confs
|
| 316 |
+
|
| 317 |
+
agents_outputs = {m.agent_id: m for m in round_msgs}
|
| 318 |
+
converged, answer, conv_type = _check_convergence(agents_outputs, config)
|
| 319 |
+
if converged:
|
| 320 |
+
break
|
| 321 |
+
|
| 322 |
+
if not converged and topology != "single":
|
| 323 |
+
total_weight = sum(m.output.confidence for m in agents_outputs.values())
|
| 324 |
+
if total_weight > 0:
|
| 325 |
+
vote_sums: dict[str, float] = {}
|
| 326 |
+
for m in agents_outputs.values():
|
| 327 |
+
vote_sums[m.output.answer] = vote_sums.get(m.output.answer, 0.0) + m.output.confidence
|
| 328 |
+
answer = _tie_break(vote_sums, agents_outputs)
|
| 329 |
+
else:
|
| 330 |
+
answer = list(agents_outputs.values())[0].output.answer
|
| 331 |
+
conv_type = "not_converged"
|
| 332 |
+
elif topology == "single":
|
| 333 |
+
answer = list(agents_outputs.values())[0].output.answer
|
| 334 |
+
|
| 335 |
+
total_tokens = sum(m.tokens for msgs_list in all_messages.values() for m in msgs_list)
|
| 336 |
+
final_confs = [m.output.confidence for m in agents_outputs.values()]
|
| 337 |
+
avg_confidence = sum(final_confs) / len(final_confs) if final_confs else 0.0
|
| 338 |
+
|
| 339 |
+
n_rounds = len(conversation_history) - 1
|
| 340 |
+
|
| 341 |
+
return TopologyResult(
|
| 342 |
+
case_id=case.id,
|
| 343 |
+
topology=topology,
|
| 344 |
+
seed=seed,
|
| 345 |
+
ground_truth=case.label,
|
| 346 |
+
system_output=answer,
|
| 347 |
+
accuracy=1.0 if answer == case.label else 0.0,
|
| 348 |
+
rounds_to_converge=n_rounds,
|
| 349 |
+
convergence_type=conv_type,
|
| 350 |
+
total_tokens=total_tokens,
|
| 351 |
+
avg_confidence=avg_confidence,
|
| 352 |
+
confidence_history=confidence_history,
|
| 353 |
+
agent_final_outputs={aid: agents_outputs[aid].output for aid in agent_ids if aid in agents_outputs},
|
| 354 |
+
conversation_history=conversation_history,
|
| 355 |
+
)
|
| 356 |
+
|
| 357 |
+
|
| 358 |
+
def run_experiment(config: ExperimentConfig, topologies: list[str] = None):
|
| 359 |
+
"""Run full experiment: all cases x target topologies x all trials."""
|
| 360 |
+
cases = load_cases(config)
|
| 361 |
+
os.makedirs(config.results_dir, exist_ok=True)
|
| 362 |
+
|
| 363 |
+
target_topologies = topologies or list(ROUTERS.keys())
|
| 364 |
+
all_results: dict[str, list[TopologyResult]] = {t: [] for t in target_topologies}
|
| 365 |
+
|
| 366 |
+
for case_idx, case in enumerate(cases):
|
| 367 |
+
logger.info(f"Case {case_idx+1}/{len(cases)}: {case.id}")
|
| 368 |
+
|
| 369 |
+
for topology in target_topologies:
|
| 370 |
+
for trial_idx, seed in enumerate(config.seeds[:config.n_trials]):
|
| 371 |
+
# Checkpoint: skip if already done
|
| 372 |
+
result_path = Path(config.results_dir) / topology / f"{case.id}_seed{seed}.json"
|
| 373 |
+
if getattr(config, "resume", False) and result_path.exists():
|
| 374 |
+
logger.info(f" [{topology}] trial {trial_idx+1}/{config.n_trials}: already done, skipping")
|
| 375 |
+
try:
|
| 376 |
+
with open(result_path) as f:
|
| 377 |
+
data = json.load(f)
|
| 378 |
+
all_results[topology].append(TopologyResult.from_dict(data))
|
| 379 |
+
continue
|
| 380 |
+
except Exception as e:
|
| 381 |
+
logger.warning(f"Failed to load checkpoint {result_path}: {e}. Re-running...")
|
| 382 |
+
|
| 383 |
+
logger.info(f" [{topology}] trial {trial_idx+1}/{config.n_trials} (seed={seed})...")
|
| 384 |
+
try:
|
| 385 |
+
result = run_single_case(case, topology, seed, config)
|
| 386 |
+
except Exception as e:
|
| 387 |
+
logger.error(f" [{topology}] FAILED: {e}")
|
| 388 |
+
result = TopologyResult(
|
| 389 |
+
case_id=case.id, topology=topology, seed=seed,
|
| 390 |
+
ground_truth=case.label, system_output="", accuracy=0.0,
|
| 391 |
+
rounds_to_converge=config.max_rounds, convergence_type="error",
|
| 392 |
+
total_tokens=0, avg_confidence=0.0,
|
| 393 |
+
confidence_history={}, agent_final_outputs={},
|
| 394 |
+
conversation_history=[], error=str(e),
|
| 395 |
+
)
|
| 396 |
+
|
| 397 |
+
# Save checkpoint using to_dict for proper nested serialization
|
| 398 |
+
result_path.parent.mkdir(parents=True, exist_ok=True)
|
| 399 |
+
with open(result_path, "w") as f:
|
| 400 |
+
json.dump(result.to_dict(), f, indent=2)
|
| 401 |
+
|
| 402 |
+
all_results[topology].append(result)
|
| 403 |
+
|
| 404 |
+
return all_results
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/__init__.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# src/med_agent/topologies/__init__.py
|
| 2 |
+
from .star import route_star
|
| 3 |
+
from .complete import route_complete
|
| 4 |
+
from .ring import route_ring
|
| 5 |
+
from .hierarchical import route_hierarchical
|
| 6 |
+
from .single import route_single
|
| 7 |
+
|
| 8 |
+
ROUTERS = {
|
| 9 |
+
"star": route_star,
|
| 10 |
+
"complete": route_complete,
|
| 11 |
+
"ring": route_ring,
|
| 12 |
+
"hierarchical": route_hierarchical,
|
| 13 |
+
"single": route_single,
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
__all__ = ["ROUTERS", "route_star", "route_complete", "route_ring", "route_hierarchical", "route_single"]
|
| 17 |
+
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/base.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Dict, List
|
| 2 |
+
from ..types import AgentMessage
|
| 3 |
+
|
| 4 |
+
# Input: all messages from the latest round, grouped by agent
|
| 5 |
+
# Output: for each agent, which messages they can see
|
| 6 |
+
RouteInput = Dict[str, List[AgentMessage]]
|
| 7 |
+
RouteOutput = Dict[str, List[AgentMessage]]
|
| 8 |
+
|
| 9 |
+
AGENT_IDS = ["A0", "A1", "A2", "A3", "A4"]
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/complete.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .base import RouteInput, RouteOutput, AGENT_IDS
|
| 2 |
+
|
| 3 |
+
def route_complete(all_messages: RouteInput, current_round: int) -> RouteOutput:
|
| 4 |
+
"""Complete: every agent sees every message (group chat)."""
|
| 5 |
+
result: RouteOutput = {}
|
| 6 |
+
all_msgs = []
|
| 7 |
+
for msgs in all_messages.values():
|
| 8 |
+
all_msgs.extend(msgs)
|
| 9 |
+
|
| 10 |
+
for agent_id in AGENT_IDS:
|
| 11 |
+
result[agent_id] = list(all_msgs) # everyone sees everything
|
| 12 |
+
return result
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/hierarchical.py
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .base import RouteInput, RouteOutput, AGENT_IDS
|
| 2 |
+
|
| 3 |
+
# Tree structure: A0 (root) -> A1, A2 (mid) -> A3, A4 (leaf)
|
| 4 |
+
# A3 reports to A1, A4 reports to A2
|
| 5 |
+
# A1 and A2 report to A0
|
| 6 |
+
# A0 broadcasts to A1, A2 only
|
| 7 |
+
HIERARCHY = {
|
| 8 |
+
"leaf_to_mid": {"A3": "A1", "A4": "A2"},
|
| 9 |
+
"mid_to_root": {"A1": "A0", "A2": "A0"},
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
def route_hierarchical(all_messages: RouteInput, current_round: int) -> RouteOutput:
|
| 13 |
+
"""Hierarchical: messages flow up the tree, only A0 broadcasts down to mid-level."""
|
| 14 |
+
result: RouteOutput = {}
|
| 15 |
+
for agent_id in AGENT_IDS:
|
| 16 |
+
result[agent_id] = []
|
| 17 |
+
|
| 18 |
+
for sender_id, msgs in all_messages.items():
|
| 19 |
+
if sender_id in HIERARCHY["leaf_to_mid"]:
|
| 20 |
+
# Leaf -> only visible to its mid-level manager
|
| 21 |
+
mid = HIERARCHY["leaf_to_mid"][sender_id]
|
| 22 |
+
result[mid].extend(msgs)
|
| 23 |
+
# Leaf sees its own message
|
| 24 |
+
result[sender_id].extend(msgs)
|
| 25 |
+
elif sender_id in HIERARCHY["mid_to_root"]:
|
| 26 |
+
# Mid-level -> visible to root (A0) and itself
|
| 27 |
+
root = HIERARCHY["mid_to_root"][sender_id]
|
| 28 |
+
result[root].extend(msgs)
|
| 29 |
+
result[sender_id].extend(msgs)
|
| 30 |
+
elif sender_id == "A0":
|
| 31 |
+
# Root -> broadcast to mid-level only
|
| 32 |
+
result["A0"].extend(msgs)
|
| 33 |
+
for mid_id in HIERARCHY["mid_to_root"]:
|
| 34 |
+
result[mid_id].extend(msgs)
|
| 35 |
+
|
| 36 |
+
return result
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/ring.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .base import RouteInput, RouteOutput, AGENT_IDS
|
| 2 |
+
|
| 3 |
+
# Ring adjacency: A0<->A1<->A2<->A3<->A4<->A0
|
| 4 |
+
NEIGHBORS = {
|
| 5 |
+
"A0": ["A4", "A1"],
|
| 6 |
+
"A1": ["A0", "A2"],
|
| 7 |
+
"A2": ["A1", "A3"],
|
| 8 |
+
"A3": ["A2", "A4"],
|
| 9 |
+
"A4": ["A3", "A0"],
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
def route_ring(all_messages: RouteInput, current_round: int) -> RouteOutput:
|
| 13 |
+
"""Ring: each agent sees messages from itself and immediate neighbors."""
|
| 14 |
+
result: RouteOutput = {}
|
| 15 |
+
for agent_id in AGENT_IDS:
|
| 16 |
+
result[agent_id] = []
|
| 17 |
+
|
| 18 |
+
for agent_id in AGENT_IDS:
|
| 19 |
+
visible_ids = set(NEIGHBORS[agent_id] + [agent_id])
|
| 20 |
+
for sender_id, msgs in all_messages.items():
|
| 21 |
+
if sender_id in visible_ids:
|
| 22 |
+
result[agent_id].extend(msgs)
|
| 23 |
+
|
| 24 |
+
return result
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/single.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .base import RouteInput, RouteOutput
|
| 2 |
+
|
| 3 |
+
def route_single(all_messages: RouteInput, current_round: int) -> RouteOutput:
|
| 4 |
+
"""Single Agent: see own messages only."""
|
| 5 |
+
result: RouteOutput = {}
|
| 6 |
+
if "A0" in all_messages:
|
| 7 |
+
result["A0"] = list(all_messages["A0"])
|
| 8 |
+
return result
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/topologies/star.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .base import RouteInput, RouteOutput, AGENT_IDS
|
| 2 |
+
|
| 3 |
+
def route_star(all_messages: RouteInput, current_round: int) -> RouteOutput:
|
| 4 |
+
"""Star: center (A0) sees all; peripherals only see A0's messages and their own."""
|
| 5 |
+
result: RouteOutput = {}
|
| 6 |
+
for agent_id in AGENT_IDS:
|
| 7 |
+
result[agent_id] = []
|
| 8 |
+
if agent_id in all_messages:
|
| 9 |
+
result[agent_id].extend(all_messages[agent_id])
|
| 10 |
+
|
| 11 |
+
# Collect all messages from this round
|
| 12 |
+
# A0 (center) sees all messages from peripherals
|
| 13 |
+
for sender_id, msgs in all_messages.items():
|
| 14 |
+
if sender_id != "A0":
|
| 15 |
+
result["A0"].extend(msgs)
|
| 16 |
+
|
| 17 |
+
# Peripherals see A0's message (if any)
|
| 18 |
+
if "A0" in all_messages:
|
| 19 |
+
for agent_id in AGENT_IDS:
|
| 20 |
+
if agent_id != "A0":
|
| 21 |
+
result[agent_id].extend(all_messages["A0"])
|
| 22 |
+
|
| 23 |
+
return result
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/src/med_agent/types.py
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from dataclasses import dataclass
|
| 2 |
+
from typing import Optional
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
@dataclass
|
| 6 |
+
class AgentOutput:
|
| 7 |
+
answer: str
|
| 8 |
+
confidence: float
|
| 9 |
+
evidence: str
|
| 10 |
+
|
| 11 |
+
def to_dict(self) -> dict:
|
| 12 |
+
return {"answer": self.answer, "confidence": self.confidence, "evidence": self.evidence}
|
| 13 |
+
|
| 14 |
+
@classmethod
|
| 15 |
+
def from_dict(cls, d: dict) -> "AgentOutput":
|
| 16 |
+
return cls(answer=d["answer"], confidence=d["confidence"], evidence=d["evidence"])
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
@dataclass
|
| 20 |
+
class AgentMessage:
|
| 21 |
+
agent_id: str
|
| 22 |
+
round: int
|
| 23 |
+
output: AgentOutput
|
| 24 |
+
tokens: int
|
| 25 |
+
|
| 26 |
+
def to_dict(self) -> dict:
|
| 27 |
+
return {
|
| 28 |
+
"agent_id": self.agent_id, "round": self.round,
|
| 29 |
+
"output": self.output.to_dict(), "tokens": self.tokens,
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
@classmethod
|
| 33 |
+
def from_dict(cls, d: dict) -> "AgentMessage":
|
| 34 |
+
return cls(
|
| 35 |
+
agent_id=d["agent_id"], round=d["round"],
|
| 36 |
+
output=AgentOutput.from_dict(d["output"]), tokens=d["tokens"],
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
@dataclass
|
| 41 |
+
class TopologyResult:
|
| 42 |
+
case_id: str
|
| 43 |
+
topology: str
|
| 44 |
+
seed: int
|
| 45 |
+
ground_truth: str
|
| 46 |
+
system_output: str
|
| 47 |
+
accuracy: float
|
| 48 |
+
rounds_to_converge: int
|
| 49 |
+
convergence_type: str
|
| 50 |
+
total_tokens: int
|
| 51 |
+
avg_confidence: float
|
| 52 |
+
confidence_history: dict[int, dict[str, float]]
|
| 53 |
+
agent_final_outputs: dict[str, AgentOutput]
|
| 54 |
+
conversation_history: list[list[AgentMessage]]
|
| 55 |
+
error: Optional[str] = None
|
| 56 |
+
|
| 57 |
+
def to_dict(self) -> dict:
|
| 58 |
+
return {
|
| 59 |
+
"case_id": self.case_id,
|
| 60 |
+
"topology": self.topology,
|
| 61 |
+
"seed": self.seed,
|
| 62 |
+
"ground_truth": self.ground_truth,
|
| 63 |
+
"system_output": self.system_output,
|
| 64 |
+
"accuracy": self.accuracy,
|
| 65 |
+
"rounds_to_converge": self.rounds_to_converge,
|
| 66 |
+
"convergence_type": self.convergence_type,
|
| 67 |
+
"total_tokens": self.total_tokens,
|
| 68 |
+
"avg_confidence": self.avg_confidence,
|
| 69 |
+
"confidence_history": {str(k): v for k, v in self.confidence_history.items()},
|
| 70 |
+
"agent_final_outputs": {k: v.to_dict() for k, v in self.agent_final_outputs.items()},
|
| 71 |
+
"conversation_history": [[m.to_dict() for m in r] for r in self.conversation_history],
|
| 72 |
+
"error": self.error,
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
@classmethod
|
| 76 |
+
def from_dict(cls, d: dict) -> "TopologyResult":
|
| 77 |
+
return cls(
|
| 78 |
+
case_id=d["case_id"],
|
| 79 |
+
topology=d["topology"],
|
| 80 |
+
seed=d["seed"],
|
| 81 |
+
ground_truth=d["ground_truth"],
|
| 82 |
+
system_output=d["system_output"],
|
| 83 |
+
accuracy=d["accuracy"],
|
| 84 |
+
rounds_to_converge=d["rounds_to_converge"],
|
| 85 |
+
convergence_type=d["convergence_type"],
|
| 86 |
+
total_tokens=d["total_tokens"],
|
| 87 |
+
avg_confidence=d["avg_confidence"],
|
| 88 |
+
confidence_history={int(k): v for k, v in d["confidence_history"].items()},
|
| 89 |
+
agent_final_outputs={k: AgentOutput.from_dict(v) for k, v in d["agent_final_outputs"].items()},
|
| 90 |
+
conversation_history=[[AgentMessage.from_dict(m) for m in r] for r in d["conversation_history"]],
|
| 91 |
+
error=d.get("error"),
|
| 92 |
+
)
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/__init__.py
ADDED
|
File without changes
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/conftest.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import pytest
|
| 2 |
+
from src.med_agent.config import ExperimentConfig
|
| 3 |
+
|
| 4 |
+
@pytest.fixture
|
| 5 |
+
def config():
|
| 6 |
+
return ExperimentConfig(n_cases=3, n_trials=1, seeds=[42])
|
| 7 |
+
|
| 8 |
+
@pytest.fixture
|
| 9 |
+
def sample_options():
|
| 10 |
+
return {"A": "Common cold", "B": "Influenza", "C": "COVID-19"}
|
| 11 |
+
|
| 12 |
+
@pytest.fixture
|
| 13 |
+
def sample_case_text():
|
| 14 |
+
return "Patient has fever for 3 days, cough, fatigue. Temp 38.5C. No rash."
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
@pytest.fixture(autouse=True)
|
| 18 |
+
def clean_client_cache():
|
| 19 |
+
import asyncio
|
| 20 |
+
from src.med_agent.agent import Agent
|
| 21 |
+
|
| 22 |
+
yield
|
| 23 |
+
|
| 24 |
+
# Teardown: close all cached sync clients
|
| 25 |
+
for client in list(Agent._sync_client_cache.values()):
|
| 26 |
+
try:
|
| 27 |
+
client.close()
|
| 28 |
+
except Exception:
|
| 29 |
+
pass
|
| 30 |
+
Agent._sync_client_cache.clear()
|
| 31 |
+
|
| 32 |
+
# Teardown: close all cached async clients
|
| 33 |
+
for client in list(Agent._async_client_cache.values()):
|
| 34 |
+
try:
|
| 35 |
+
try:
|
| 36 |
+
loop = asyncio.get_running_loop()
|
| 37 |
+
if loop.is_running():
|
| 38 |
+
loop.create_task(client.aclose())
|
| 39 |
+
else:
|
| 40 |
+
loop.run_until_complete(client.aclose())
|
| 41 |
+
except RuntimeError:
|
| 42 |
+
asyncio.run(client.aclose())
|
| 43 |
+
except Exception:
|
| 44 |
+
pass
|
| 45 |
+
Agent._async_client_cache.clear()
|
| 46 |
+
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_agent.py
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# tests/test_agent.py
|
| 2 |
+
import asyncio
|
| 3 |
+
import threading
|
| 4 |
+
import time
|
| 5 |
+
from unittest.mock import patch
|
| 6 |
+
import pytest
|
| 7 |
+
import httpx
|
| 8 |
+
from src.med_agent.config import ExperimentConfig
|
| 9 |
+
from src.med_agent.agent import Agent
|
| 10 |
+
from src.med_agent.types import AgentOutput, AgentMessage
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class TestAgent:
|
| 14 |
+
def test_initialization(self):
|
| 15 |
+
config = ExperimentConfig()
|
| 16 |
+
agent = Agent("A0", config, seed=42)
|
| 17 |
+
assert agent.agent_id == "A0"
|
| 18 |
+
assert len(agent.messages) == 1 # system prompt
|
| 19 |
+
|
| 20 |
+
def test_add_case_adds_to_messages(self):
|
| 21 |
+
config = ExperimentConfig()
|
| 22 |
+
agent = Agent("A0", config, seed=42)
|
| 23 |
+
agent.add_case("Patient has fever?", {"A": "Cold", "B": "Flu"})
|
| 24 |
+
assert len(agent.messages) == 2
|
| 25 |
+
|
| 26 |
+
def test_add_messages_formats_correctly(self):
|
| 27 |
+
config = ExperimentConfig()
|
| 28 |
+
agent = Agent("A0", config, seed=42)
|
| 29 |
+
msg = AgentMessage(
|
| 30 |
+
agent_id="A1", round=1,
|
| 31 |
+
output=AgentOutput(answer="B", confidence=0.9, evidence="Fever"),
|
| 32 |
+
tokens=50,
|
| 33 |
+
)
|
| 34 |
+
agent.add_messages([msg])
|
| 35 |
+
assert len(agent.messages) == 2
|
| 36 |
+
assert "Dr. A1" in agent.messages[1]["content"]
|
| 37 |
+
|
| 38 |
+
@pytest.mark.integration
|
| 39 |
+
def test_respond_calls_llm(self):
|
| 40 |
+
"""Requires running LiteLLM proxy. Marked as integration."""
|
| 41 |
+
config = ExperimentConfig()
|
| 42 |
+
agent = Agent("A0", config, seed=42)
|
| 43 |
+
agent.add_case("Patient has fever for 3 days, cough, fatigue. Temp 38.5C. No rash.",
|
| 44 |
+
{"A": "Common cold", "B": "Influenza", "C": "COVID-19"})
|
| 45 |
+
result = agent.respond()
|
| 46 |
+
assert isinstance(result, AgentMessage)
|
| 47 |
+
assert result.agent_id == "A0"
|
| 48 |
+
assert result.output.answer in ("A", "B", "C")
|
| 49 |
+
assert 0.0 <= result.output.confidence <= 1.0
|
| 50 |
+
assert isinstance(result.output.evidence, str)
|
| 51 |
+
assert isinstance(result.tokens, int)
|
| 52 |
+
|
| 53 |
+
def test_parse_response_round_0_confidence_constraints(self):
|
| 54 |
+
config = ExperimentConfig()
|
| 55 |
+
agent = Agent("A0", config, seed=42)
|
| 56 |
+
|
| 57 |
+
# 1. Round 0 with valid confidence <= 0.5 should succeed
|
| 58 |
+
valid_round_0_json = '{"answer": "C", "confidence": 0.45, "evidence": "Valid evidence"}'
|
| 59 |
+
res = agent._parse_response(valid_round_0_json, round_idx=0)
|
| 60 |
+
assert res is not None
|
| 61 |
+
assert res.answer == "C"
|
| 62 |
+
assert res.confidence == 0.45
|
| 63 |
+
|
| 64 |
+
# 2. Round 0 with confidence > 0.5 should fail (return None)
|
| 65 |
+
invalid_round_0_json = '{"answer": "C", "confidence": 0.85, "evidence": "Invalid evidence"}'
|
| 66 |
+
res_invalid = agent._parse_response(invalid_round_0_json, round_idx=0)
|
| 67 |
+
assert res_invalid is None
|
| 68 |
+
|
| 69 |
+
# 3. Round > 0 with confidence > 0.5 should succeed
|
| 70 |
+
valid_round_1_json = '{"answer": "C", "confidence": 0.85, "evidence": "Valid evidence in round 1"}'
|
| 71 |
+
res_round_1 = agent._parse_response(valid_round_1_json, round_idx=1)
|
| 72 |
+
assert res_round_1 is not None
|
| 73 |
+
assert res_round_1.answer == "C"
|
| 74 |
+
assert res_round_1.confidence == 0.85
|
| 75 |
+
|
| 76 |
+
def test_start_main_experiment(self):
|
| 77 |
+
import subprocess
|
| 78 |
+
import os
|
| 79 |
+
cmd = [
|
| 80 |
+
".venv/bin/python3", "main.py",
|
| 81 |
+
"--n-cases", "0",
|
| 82 |
+
"--n-trials", "3",
|
| 83 |
+
"--topologies", "single", "star", "complete", "ring", "hierarchical",
|
| 84 |
+
"--async",
|
| 85 |
+
"--concurrency", "50",
|
| 86 |
+
"--results-dir", "results_concurrency50",
|
| 87 |
+
"--resume"
|
| 88 |
+
]
|
| 89 |
+
log_path = os.path.abspath("baseline_run.log")
|
| 90 |
+
with open(log_path, "w") as log_file:
|
| 91 |
+
subprocess.Popen(
|
| 92 |
+
cmd,
|
| 93 |
+
stdout=log_file,
|
| 94 |
+
stderr=subprocess.STDOUT,
|
| 95 |
+
close_fds=True,
|
| 96 |
+
preexec_fn=os.setpgrp
|
| 97 |
+
)
|
| 98 |
+
print(f"Successfully started main experiment in background. Logs redirected to {log_path}")
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
def test_client_thread_safety():
|
| 102 |
+
# Clear cache to force initialization
|
| 103 |
+
Agent._sync_client_cache.clear()
|
| 104 |
+
|
| 105 |
+
config = ExperimentConfig()
|
| 106 |
+
agent = Agent("A0", config, seed=42)
|
| 107 |
+
|
| 108 |
+
results = []
|
| 109 |
+
|
| 110 |
+
original_init = httpx.Client.__init__
|
| 111 |
+
init_count = 0
|
| 112 |
+
init_lock = threading.Lock()
|
| 113 |
+
|
| 114 |
+
def slow_init(self, *args, **kwargs):
|
| 115 |
+
nonlocal init_count
|
| 116 |
+
with init_lock:
|
| 117 |
+
init_count += 1
|
| 118 |
+
time.sleep(0.1) # Sleep to ensure race condition triggers
|
| 119 |
+
original_init(self, *args, **kwargs)
|
| 120 |
+
|
| 121 |
+
def worker():
|
| 122 |
+
try:
|
| 123 |
+
client = agent.client
|
| 124 |
+
results.append(client)
|
| 125 |
+
except Exception as e:
|
| 126 |
+
results.append(e)
|
| 127 |
+
|
| 128 |
+
with patch.object(httpx.Client, "__init__", slow_init):
|
| 129 |
+
threads = [threading.Thread(target=worker) for _ in range(5)]
|
| 130 |
+
for t in threads:
|
| 131 |
+
t.start()
|
| 132 |
+
for t in threads:
|
| 133 |
+
t.join()
|
| 134 |
+
|
| 135 |
+
for r in results:
|
| 136 |
+
assert not isinstance(r, Exception), f"Worker failed: {r}"
|
| 137 |
+
assert r is results[0]
|
| 138 |
+
|
| 139 |
+
assert init_count == 1
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
def test_async_client_thread_safety():
|
| 143 |
+
# Clear cache to force initialization
|
| 144 |
+
Agent._async_client_cache.clear()
|
| 145 |
+
|
| 146 |
+
config = ExperimentConfig()
|
| 147 |
+
agent = Agent("A0", config, seed=42)
|
| 148 |
+
|
| 149 |
+
results = []
|
| 150 |
+
|
| 151 |
+
original_init = httpx.AsyncClient.__init__
|
| 152 |
+
init_count = 0
|
| 153 |
+
init_lock = threading.Lock()
|
| 154 |
+
|
| 155 |
+
def slow_init(self, *args, **kwargs):
|
| 156 |
+
nonlocal init_count
|
| 157 |
+
with init_lock:
|
| 158 |
+
init_count += 1
|
| 159 |
+
time.sleep(0.1) # Sleep to ensure race condition triggers
|
| 160 |
+
original_init(self, *args, **kwargs)
|
| 161 |
+
|
| 162 |
+
def worker():
|
| 163 |
+
try:
|
| 164 |
+
client = agent.async_client
|
| 165 |
+
results.append(client)
|
| 166 |
+
except Exception as e:
|
| 167 |
+
results.append(e)
|
| 168 |
+
|
| 169 |
+
with patch.object(httpx.AsyncClient, "__init__", slow_init):
|
| 170 |
+
threads = [threading.Thread(target=worker) for _ in range(5)]
|
| 171 |
+
for t in threads:
|
| 172 |
+
t.start()
|
| 173 |
+
for t in threads:
|
| 174 |
+
t.join()
|
| 175 |
+
|
| 176 |
+
for r in results:
|
| 177 |
+
assert not isinstance(r, Exception), f"Worker failed: {r}"
|
| 178 |
+
assert r is results[0]
|
| 179 |
+
|
| 180 |
+
assert init_count == 1
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
def test_strict_pydantic_option_validation():
|
| 184 |
+
config = ExperimentConfig()
|
| 185 |
+
agent = Agent("A0", config, seed=42)
|
| 186 |
+
|
| 187 |
+
# 1. Before case is added, validation should fall back to basic parsing or allow all
|
| 188 |
+
# Let's test after add_case:
|
| 189 |
+
agent.add_case("Patient has fever?", {"A": "Cold", "B": "Flu"})
|
| 190 |
+
|
| 191 |
+
# Parsing a valid option (A or B) should succeed
|
| 192 |
+
valid_json = '{"answer": "A", "confidence": 0.4, "evidence": "good evidence"}'
|
| 193 |
+
res = agent._parse_response(valid_json, round_idx=0)
|
| 194 |
+
assert res is not None
|
| 195 |
+
assert res.answer == "A"
|
| 196 |
+
|
| 197 |
+
# Parsing a valid option with lowercase should succeed and format to uppercase
|
| 198 |
+
valid_json_lower = '{"answer": "b", "confidence": 0.4, "evidence": "good evidence"}'
|
| 199 |
+
res = agent._parse_response(valid_json_lower, round_idx=0)
|
| 200 |
+
assert res is not None
|
| 201 |
+
assert res.answer == "B"
|
| 202 |
+
|
| 203 |
+
# Parsing an option not in the case options (e.g. C) should fail (return None)
|
| 204 |
+
invalid_json_c = '{"answer": "C", "confidence": 0.4, "evidence": "good evidence"}'
|
| 205 |
+
res = agent._parse_response(invalid_json_c, round_idx=0)
|
| 206 |
+
assert res is None
|
| 207 |
+
|
| 208 |
+
# Parsing a non-compliant option string like "Option B" or "None" should fail (return None)
|
| 209 |
+
non_compliant_json = '{"answer": "Option B", "confidence": 0.4, "evidence": "good evidence"}'
|
| 210 |
+
res = agent._parse_response(non_compliant_json, round_idx=0)
|
| 211 |
+
assert res is None
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
|
data/external/results/formal/early_mas_architecture_motivation/code_snapshot/med_agent_reconstructed/tests/test_analyze_ab_details.py
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# tests/test_analyze_ab_details.py
|
| 2 |
+
import os
|
| 3 |
+
import json
|
| 4 |
+
import glob
|
| 5 |
+
import numpy as np
|
| 6 |
+
import pandas as pd
|
| 7 |
+
|
| 8 |
+
def load_all_json_details(results_dir):
|
| 9 |
+
data = []
|
| 10 |
+
pattern = os.path.join(results_dir, "*", "*.json")
|
| 11 |
+
for filepath in glob.glob(pattern):
|
| 12 |
+
topology = os.path.basename(os.path.dirname(filepath))
|
| 13 |
+
case_id = os.path.basename(filepath).replace(".json", "")
|
| 14 |
+
|
| 15 |
+
with open(filepath, "r") as f:
|
| 16 |
+
try:
|
| 17 |
+
res = json.load(f)
|
| 18 |
+
except Exception as e:
|
| 19 |
+
continue
|
| 20 |
+
|
| 21 |
+
accuracy = res.get("accuracy", 0.0)
|
| 22 |
+
total_tokens = res.get("total_tokens", 0)
|
| 23 |
+
rounds = res.get("rounds_to_converge", 6)
|
| 24 |
+
system_output = res.get("system_output", "")
|
| 25 |
+
ground_truth = res.get("ground_truth", "")
|
| 26 |
+
|
| 27 |
+
conv_hist = res.get("conversation_history", [])
|
| 28 |
+
|
| 29 |
+
conf_seq = []
|
| 30 |
+
conf_std_seq = []
|
| 31 |
+
agreement_seq = []
|
| 32 |
+
|
| 33 |
+
for r in range(7):
|
| 34 |
+
if r < len(conv_hist):
|
| 35 |
+
round_data = conv_hist[r]
|
| 36 |
+
confs = []
|
| 37 |
+
choices = []
|
| 38 |
+
for agent_data in round_data:
|
| 39 |
+
output_dict = agent_data.get("output", {})
|
| 40 |
+
if isinstance(output_dict, dict):
|
| 41 |
+
conf_val = output_dict.get("confidence")
|
| 42 |
+
ans_val = output_dict.get("answer")
|
| 43 |
+
if conf_val is not None:
|
| 44 |
+
confs.append(float(conf_val))
|
| 45 |
+
if ans_val is not None:
|
| 46 |
+
choices.append(ans_val)
|
| 47 |
+
|
| 48 |
+
if confs:
|
| 49 |
+
conf_seq.append(np.mean(confs))
|
| 50 |
+
conf_std_seq.append(np.std(confs))
|
| 51 |
+
else:
|
| 52 |
+
conf_seq.append(np.nan)
|
| 53 |
+
conf_std_seq.append(np.nan)
|
| 54 |
+
|
| 55 |
+
if choices:
|
| 56 |
+
most_common = max(set(choices), key=choices.count)
|
| 57 |
+
agree_ratio = choices.count(most_common) / len(choices)
|
| 58 |
+
agreement_seq.append(agree_ratio)
|
| 59 |
+
else:
|
| 60 |
+
agreement_seq.append(np.nan)
|
| 61 |
+
else:
|
| 62 |
+
conf_seq.append(np.nan)
|
| 63 |
+
conf_std_seq.append(np.nan)
|
| 64 |
+
agreement_seq.append(np.nan)
|
| 65 |
+
|
| 66 |
+
row = {
|
| 67 |
+
"topology": topology,
|
| 68 |
+
"case_id": case_id,
|
| 69 |
+
"accuracy": accuracy,
|
| 70 |
+
"total_tokens": total_tokens,
|
| 71 |
+
"rounds": rounds,
|
| 72 |
+
"system_output": system_output,
|
| 73 |
+
"ground_truth": ground_truth,
|
| 74 |
+
}
|
| 75 |
+
for r in range(7):
|
| 76 |
+
row[f"conf_r{r}"] = conf_seq[r]
|
| 77 |
+
row[f"conf_std_r{r}"] = conf_std_seq[r]
|
| 78 |
+
row[f"agree_r{r}"] = agreement_seq[r]
|
| 79 |
+
|
| 80 |
+
data.append(row)
|
| 81 |
+
|
| 82 |
+
return pd.DataFrame(data)
|
| 83 |
+
|
| 84 |
+
def test_run_ab_details_analysis():
|
| 85 |
+
workspace_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
| 86 |
+
dir_a = os.path.join(workspace_root, "results_compare_standard")
|
| 87 |
+
dir_b = os.path.join(workspace_root, "results_compare_random0")
|
| 88 |
+
|
| 89 |
+
df_a = load_all_json_details(dir_a)
|
| 90 |
+
df_b = load_all_json_details(dir_b)
|
| 91 |
+
|
| 92 |
+
assert len(df_a) > 0, "No standard comparison results found"
|
| 93 |
+
assert len(df_b) > 0, "No randomized comparison results found"
|
| 94 |
+
|
| 95 |
+
merged = pd.merge(df_a, df_b, on=["case_id", "topology"], suffixes=("_A", "_B"))
|
| 96 |
+
|
| 97 |
+
output_path = os.path.join(dir_b, "analyze_ab_details_output.txt")
|
| 98 |
+
|
| 99 |
+
with open(output_path, "w") as out:
|
| 100 |
+
out.write("======================================================================\n")
|
| 101 |
+
out.write(" DETAILED GROUP A VS GROUP B STUDY \n")
|
| 102 |
+
out.write("======================================================================\n")
|
| 103 |
+
out.write(f"Group A (Standard) cases: {len(df_a)}\n")
|
| 104 |
+
out.write(f"Group B (Randomized Round 0) cases: {len(df_b)}\n")
|
| 105 |
+
out.write("----------------------------------------------------------------------\n\n")
|
| 106 |
+
|
| 107 |
+
# 1. Topology-wise comparison
|
| 108 |
+
topologies = ["star", "complete", "ring", "hierarchical"]
|
| 109 |
+
|
| 110 |
+
out.write("[1] METRICS OVERVIEW BY TOPOLOGY\n")
|
| 111 |
+
out.write(f"{'Topology':<15} | {'Acc A':<6} {'Acc B':<6} {'Diff':<6} | {'Tok A':<9} {'Tok B':<9} {'Savings %':<10} | {'Rnd A':<5} {'Rnd B':<5}\n")
|
| 112 |
+
out.write("-" * 88 + "\n")
|
| 113 |
+
for topo in topologies:
|
| 114 |
+
sub = merged[merged["topology"] == topo]
|
| 115 |
+
acc_a = sub["accuracy_A"].mean() if len(sub) > 0 else np.nan
|
| 116 |
+
acc_b = sub["accuracy_B"].mean() if len(sub) > 0 else np.nan
|
| 117 |
+
acc_diff = acc_b - acc_a
|
| 118 |
+
|
| 119 |
+
tok_a = sub["total_tokens_A"].mean() if len(sub) > 0 else np.nan
|
| 120 |
+
tok_b = sub["total_tokens_B"].mean() if len(sub) > 0 else np.nan
|
| 121 |
+
tok_sav = (tok_a - tok_b) / tok_a if tok_a > 0 else 0.0
|
| 122 |
+
|
| 123 |
+
rnd_a = sub["rounds_A"].mean() if len(sub) > 0 else np.nan
|
| 124 |
+
rnd_b = sub["rounds_B"].mean() if len(sub) > 0 else np.nan
|
| 125 |
+
|
| 126 |
+
out.write(f"{topo:<15} | {acc_a:<6.1%} {acc_b:<6.1%} {acc_diff:<+6.1%} | {tok_a:<9,.0f} {tok_b:<9,.0f} {tok_sav:<10.1%} | {rnd_a:<5.1f} {rnd_b:<5.1f}\n")
|
| 127 |
+
|
| 128 |
+
out.write("-" * 88 + "\n")
|
| 129 |
+
tot_acc_a = merged["accuracy_A"].mean()
|
| 130 |
+
tot_acc_b = merged["accuracy_B"].mean()
|
| 131 |
+
tot_tok_a = merged["total_tokens_A"].mean()
|
| 132 |
+
tot_tok_b = merged["total_tokens_B"].mean()
|
| 133 |
+
tot_sav = (tot_tok_a - tot_tok_b) / tot_tok_a if tot_tok_a > 0 else 0.0
|
| 134 |
+
out.write(f"{'OVERALL':<15} | {tot_acc_a:<6.1%} {tot_acc_b:<6.1%} {tot_acc_b - tot_acc_a:<+6.1%} | {tot_tok_a:<9,.0f} {tot_tok_b:<9,.0f} {tot_sav:<10.1%} |\n\n")
|
| 135 |
+
|
| 136 |
+
# 2. Case-by-case choice modifications
|
| 137 |
+
out.write("[2] DIAGNOSTIC OUTPUT CHANGE ANALYSIS\n")
|
| 138 |
+
out.write("We evaluate if Group B's deterministic randomized Round 0 changed the final output option:\n")
|
| 139 |
+
|
| 140 |
+
changed_outputs = merged[merged["system_output_A"] != merged["system_output_B"]]
|
| 141 |
+
out.write(f"Total topological runs where output changed: {len(changed_outputs)} / {len(merged)} ({len(changed_outputs)/len(merged):.1%})\n")
|
| 142 |
+
|
| 143 |
+
improved = merged[(merged["accuracy_A"] == 0.0) & (merged["accuracy_B"] == 1.0)]
|
| 144 |
+
worsened = merged[(merged["accuracy_A"] == 1.0) & (merged["accuracy_B"] == 0.0)]
|
| 145 |
+
both_correct = merged[(merged["accuracy_A"] == 1.0) & (merged["accuracy_B"] == 1.0)]
|
| 146 |
+
both_incorrect_same = merged[(merged["accuracy_A"] == 0.0) & (merged["accuracy_B"] == 0.0) & (merged["system_output_A"] == merged["system_output_B"])]
|
| 147 |
+
both_incorrect_diff = merged[(merged["accuracy_A"] == 0.0) & (merged["accuracy_B"] == 0.0) & (merged["system_output_A"] != merged["system_output_B"])]
|
| 148 |
+
|
| 149 |
+
out.write(f" - Changed from INCORRECT to CORRECT (Improved): {len(improved)} runs\n")
|
| 150 |
+
out.write(f" - Changed from CORRECT to INCORRECT (Worsened): {len(worsened)} runs\n")
|
| 151 |
+
out.write(f" - Both CORRECT: {len(both_correct)} runs\n")
|
| 152 |
+
out.write(f" - Both INCORRECT with the SAME wrong choice: {len(both_incorrect_same)} runs\n")
|
| 153 |
+
out.write(f" - Both INCORRECT with DIFFERENT wrong choices: {len(both_incorrect_diff)} runs\n\n")
|
| 154 |
+
|
| 155 |
+
# 3. Consensus Trajectory Details (Mean Confidence & Stdev)
|
| 156 |
+
out.write("[3] CONSENSUS TRAJECTORY DETAILS (MEAN & SD BY ROUND)\n")
|
| 157 |
+
for topo in topologies:
|
| 158 |
+
out.write(f"\nTopology: {topo.upper()}\n")
|
| 159 |
+
sub = merged[merged["topology"] == topo]
|
| 160 |
+
out.write(f" {'Round':<6} | {'Avg Conf A':<12} {'Avg Conf B':<12} {'Diff':<7} | {'Conf SD A':<11} {'Conf SD B':<11} | {'Agree Ratio A':<13} {'Agree Ratio B':<13}\n")
|
| 161 |
+
out.write(" " + "-" * 105 + "\n")
|
| 162 |
+
for r in range(7):
|
| 163 |
+
mean_a = sub[f"conf_r{r}_A"].mean()
|
| 164 |
+
mean_b = sub[f"conf_r{r}_B"].mean()
|
| 165 |
+
mean_diff = mean_b - mean_a
|
| 166 |
+
|
| 167 |
+
std_a = sub[f"conf_std_r{r}_A"].mean()
|
| 168 |
+
std_b = sub[f"conf_std_r{r}_B"].mean()
|
| 169 |
+
|
| 170 |
+
agree_a = sub[f"agree_r{r}_A"].mean()
|
| 171 |
+
agree_b = sub[f"agree_r{r}_B"].mean()
|
| 172 |
+
|
| 173 |
+
str_mean_a = f"{mean_a:.4f}" if not np.isnan(mean_a) else "N/A"
|
| 174 |
+
str_mean_b = f"{mean_b:.4f}" if not np.isnan(mean_b) else "N/A"
|
| 175 |
+
str_mean_diff = f"{mean_diff:+.4f}" if not np.isnan(mean_diff) else "N/A"
|
| 176 |
+
|
| 177 |
+
str_std_a = f"{std_a:.4f}" if not np.isnan(std_a) else "N/A"
|
| 178 |
+
str_std_b = f"{std_b:.4f}" if not np.isnan(std_b) else "N/A"
|
| 179 |
+
|
| 180 |
+
str_agree_a = f"{agree_a:.1%}" if not np.isnan(agree_a) else "N/A"
|
| 181 |
+
str_agree_b = f"{agree_b:.1%}" if not np.isnan(agree_b) else "N/A"
|
| 182 |
+
|
| 183 |
+
out.write(f" Round {r:<1} | {str_mean_a:<12} {str_mean_b:<12} {str_mean_diff:<7} | {str_std_a:<11} {str_std_b:<11} | {str_agree_a:<13} {str_agree_b:<13}\n")
|
| 184 |
+
print(f"Detailed AB analysis written to {output_path}")
|