murm 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- murm-0.2.0/.env.example +55 -0
- murm-0.2.0/.gitattributes +2 -0
- murm-0.2.0/CONTRIBUTING.md +80 -0
- murm-0.2.0/Dockerfile +18 -0
- murm-0.2.0/LICENSE +21 -0
- murm-0.2.0/PARAMETERS.md +224 -0
- murm-0.2.0/PKG-INFO +559 -0
- murm-0.2.0/README.md +518 -0
- murm-0.2.0/demo/assets/extracting 2.png +0 -0
- murm-0.2.0/demo/assets/extracting.png +0 -0
- murm-0.2.0/demo/assets/god_mode 2.png +0 -0
- murm-0.2.0/demo/assets/god_mode.png +0 -0
- murm-0.2.0/demo/assets/graph 2.png +0 -0
- murm-0.2.0/demo/assets/graph.png +0 -0
- murm-0.2.0/demo/assets/interview 2.png +0 -0
- murm-0.2.0/demo/assets/interview.png +0 -0
- murm-0.2.0/demo/assets/livestream 2.png +0 -0
- murm-0.2.0/demo/assets/livestream.png +0 -0
- murm-0.2.0/demo/assets/metrics 2.png +0 -0
- murm-0.2.0/demo/assets/metrics.png +0 -0
- murm-0.2.0/demo/assets/report 2.png +0 -0
- murm-0.2.0/demo/assets/report.png +0 -0
- murm-0.2.0/demo/assets/roster 2.png +0 -0
- murm-0.2.0/demo/assets/roster.png +0 -0
- murm-0.2.0/demo/assets/setup 2.png +0 -0
- murm-0.2.0/demo/assets/setup.png +0 -0
- murm-0.2.0/demo/demo_report 2.md +39 -0
- murm-0.2.0/demo/demo_report.md +39 -0
- murm-0.2.0/docker-compose.yml +41 -0
- murm-0.2.0/frontend/Dockerfile +14 -0
- murm-0.2.0/frontend/dist/index.html +15 -0
- murm-0.2.0/frontend/evaluate_dom 2.js +36 -0
- murm-0.2.0/frontend/evaluate_dom.js +36 -0
- murm-0.2.0/frontend/index.html +15 -0
- murm-0.2.0/frontend/nginx.conf +24 -0
- murm-0.2.0/frontend/node_modules/.bin/baseline-browser-mapping +1 -0
- murm-0.2.0/frontend/node_modules/.bin/browsers +1 -0
- murm-0.2.0/frontend/node_modules/.bin/browsers 2 +1 -0
- murm-0.2.0/frontend/node_modules/.bin/browserslist +1 -0
- murm-0.2.0/frontend/node_modules/.bin/csv2json +1 -0
- murm-0.2.0/frontend/node_modules/.bin/csv2tsv +1 -0
- murm-0.2.0/frontend/node_modules/.bin/dsv2dsv +1 -0
- murm-0.2.0/frontend/node_modules/.bin/dsv2json +1 -0
- murm-0.2.0/frontend/node_modules/.bin/esbuild +1 -0
- murm-0.2.0/frontend/node_modules/.bin/escodegen +1 -0
- murm-0.2.0/frontend/node_modules/.bin/escodegen 2 +1 -0
- murm-0.2.0/frontend/node_modules/.bin/esgenerate +1 -0
- murm-0.2.0/frontend/node_modules/.bin/esgenerate 2 +1 -0
- murm-0.2.0/frontend/node_modules/.bin/esparse +1 -0
- murm-0.2.0/frontend/node_modules/.bin/esparse 2 +1 -0
- murm-0.2.0/frontend/node_modules/.bin/esvalidate +1 -0
- murm-0.2.0/frontend/node_modules/.bin/esvalidate 2 +1 -0
- murm-0.2.0/frontend/node_modules/.bin/extract-zip +1 -0
- murm-0.2.0/frontend/node_modules/.bin/extract-zip 2 +1 -0
- murm-0.2.0/frontend/node_modules/.bin/js-yaml +1 -0
- murm-0.2.0/frontend/node_modules/.bin/js-yaml 2 +1 -0
- murm-0.2.0/frontend/node_modules/.bin/jsesc +1 -0
- murm-0.2.0/frontend/node_modules/.bin/json2csv +1 -0
- murm-0.2.0/frontend/node_modules/.bin/json2dsv +1 -0
- murm-0.2.0/frontend/node_modules/.bin/json2tsv +1 -0
- murm-0.2.0/frontend/node_modules/.bin/json5 +1 -0
- murm-0.2.0/frontend/node_modules/.bin/loose-envify +1 -0
- murm-0.2.0/frontend/node_modules/.bin/nanoid +1 -0
- murm-0.2.0/frontend/node_modules/.bin/parser +1 -0
- murm-0.2.0/frontend/node_modules/.bin/puppeteer +1 -0
- murm-0.2.0/frontend/node_modules/.bin/puppeteer 2 +1 -0
- murm-0.2.0/frontend/node_modules/.bin/rollup +1 -0
- murm-0.2.0/frontend/node_modules/.bin/semver +1 -0
- murm-0.2.0/frontend/node_modules/.bin/tsv2csv +1 -0
- murm-0.2.0/frontend/node_modules/.bin/tsv2json +1 -0
- murm-0.2.0/frontend/node_modules/.bin/update-browserslist-db +1 -0
- murm-0.2.0/frontend/node_modules/.bin/vite +1 -0
- murm-0.2.0/frontend/node_modules/.package-lock.json +1439 -0
- murm-0.2.0/frontend/node_modules/baseline-browser-mapping/LICENSE.txt +201 -0
- murm-0.2.0/frontend/node_modules/baseline-browser-mapping/README.md +467 -0
- murm-0.2.0/frontend/node_modules/baseline-browser-mapping/package.json +68 -0
- murm-0.2.0/frontend/node_modules/browserslist/LICENSE +20 -0
- murm-0.2.0/frontend/node_modules/browserslist/README.md +65 -0
- murm-0.2.0/frontend/node_modules/browserslist/browser.js +54 -0
- murm-0.2.0/frontend/node_modules/browserslist/cli.js +156 -0
- murm-0.2.0/frontend/node_modules/browserslist/error.d.ts +7 -0
- murm-0.2.0/frontend/node_modules/browserslist/error.js +12 -0
- murm-0.2.0/frontend/node_modules/browserslist/index.d.ts +224 -0
- murm-0.2.0/frontend/node_modules/browserslist/index.js +1335 -0
- murm-0.2.0/frontend/node_modules/browserslist/node.js +502 -0
- murm-0.2.0/frontend/node_modules/browserslist/package.json +45 -0
- murm-0.2.0/frontend/node_modules/browserslist/parse.js +78 -0
- murm-0.2.0/frontend/node_modules/commander/CHANGELOG.md +440 -0
- murm-0.2.0/frontend/node_modules/commander/LICENSE +22 -0
- murm-0.2.0/frontend/node_modules/commander/Readme.md +917 -0
- murm-0.2.0/frontend/node_modules/commander/esm.mjs +4 -0
- murm-0.2.0/frontend/node_modules/commander/index.js +2217 -0
- murm-0.2.0/frontend/node_modules/commander/package-support.json +16 -0
- murm-0.2.0/frontend/node_modules/commander/package.json +68 -0
- murm-0.2.0/frontend/node_modules/convert-source-map/LICENSE +23 -0
- murm-0.2.0/frontend/node_modules/convert-source-map/README.md +206 -0
- murm-0.2.0/frontend/node_modules/convert-source-map/index.js +233 -0
- murm-0.2.0/frontend/node_modules/convert-source-map/package.json +38 -0
- murm-0.2.0/frontend/node_modules/csstype/LICENSE +19 -0
- murm-0.2.0/frontend/node_modules/csstype/README.md +291 -0
- murm-0.2.0/frontend/node_modules/csstype/index.d.ts +22569 -0
- murm-0.2.0/frontend/node_modules/csstype/index.js.flow +6863 -0
- murm-0.2.0/frontend/node_modules/csstype/package.json +70 -0
- murm-0.2.0/frontend/node_modules/d3/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3/README.md +12 -0
- murm-0.2.0/frontend/node_modules/d3/package.json +92 -0
- murm-0.2.0/frontend/node_modules/d3-array/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-axis/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-axis/README.md +210 -0
- murm-0.2.0/frontend/node_modules/d3-axis/package.json +54 -0
- murm-0.2.0/frontend/node_modules/d3-contour/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-contour/README.md +187 -0
- murm-0.2.0/frontend/node_modules/d3-contour/package.json +66 -0
- murm-0.2.0/frontend/node_modules/d3-dispatch/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-dispatch/README.md +94 -0
- murm-0.2.0/frontend/node_modules/d3-dispatch/package.json +50 -0
- murm-0.2.0/frontend/node_modules/d3-force/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-force/README.md +480 -0
- murm-0.2.0/frontend/node_modules/d3-force/package.json +58 -0
- murm-0.2.0/frontend/node_modules/d3-format/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-format/README.md +12 -0
- murm-0.2.0/frontend/node_modules/d3-format/package.json +56 -0
- murm-0.2.0/frontend/node_modules/d3-interpolate/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-interpolate/README.md +268 -0
- murm-0.2.0/frontend/node_modules/d3-interpolate/package.json +53 -0
- murm-0.2.0/frontend/node_modules/d3-quadtree/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-quadtree/README.md +181 -0
- murm-0.2.0/frontend/node_modules/d3-quadtree/package.json +49 -0
- murm-0.2.0/frontend/node_modules/d3-random/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-random/README.md +133 -0
- murm-0.2.0/frontend/node_modules/d3-random/package.json +51 -0
- murm-0.2.0/frontend/node_modules/d3-selection/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-selection/README.md +863 -0
- murm-0.2.0/frontend/node_modules/d3-selection/package.json +51 -0
- murm-0.2.0/frontend/node_modules/d3-time/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-time/README.md +380 -0
- murm-0.2.0/frontend/node_modules/d3-time/package.json +53 -0
- murm-0.2.0/frontend/node_modules/d3-time-format/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-time-format/README.md +209 -0
- murm-0.2.0/frontend/node_modules/d3-time-format/package.json +60 -0
- murm-0.2.0/frontend/node_modules/d3-timer/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-timer/README.md +87 -0
- murm-0.2.0/frontend/node_modules/d3-timer/package.json +53 -0
- murm-0.2.0/frontend/node_modules/d3-transition/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-transition/README.md +490 -0
- murm-0.2.0/frontend/node_modules/d3-transition/package.json +65 -0
- murm-0.2.0/frontend/node_modules/d3-zoom/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/d3-zoom/README.md +414 -0
- murm-0.2.0/frontend/node_modules/d3-zoom/package.json +57 -0
- murm-0.2.0/frontend/node_modules/debug/LICENSE +20 -0
- murm-0.2.0/frontend/node_modules/debug/README.md +481 -0
- murm-0.2.0/frontend/node_modules/debug/package.json +64 -0
- murm-0.2.0/frontend/node_modules/delaunator/LICENSE +15 -0
- murm-0.2.0/frontend/node_modules/delaunator/README.md +141 -0
- murm-0.2.0/frontend/node_modules/delaunator/delaunator.js +753 -0
- murm-0.2.0/frontend/node_modules/delaunator/delaunator.min.js +1 -0
- murm-0.2.0/frontend/node_modules/delaunator/index.js +480 -0
- murm-0.2.0/frontend/node_modules/delaunator/package.json +56 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/LICENSE +5 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/README.md +186 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/chromium-versions.js +87 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/chromium-versions.json +1 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/full-chromium-versions.js +2737 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/full-chromium-versions.json +1 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/full-versions.js +1743 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/full-versions.json +1 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/index.js +36 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/package.json +44 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/versions.js +241 -0
- murm-0.2.0/frontend/node_modules/electron-to-chromium/versions.json +1 -0
- murm-0.2.0/frontend/node_modules/esbuild/LICENSE.md +21 -0
- murm-0.2.0/frontend/node_modules/esbuild/README.md +3 -0
- murm-0.2.0/frontend/node_modules/esbuild/install.js +285 -0
- murm-0.2.0/frontend/node_modules/esbuild/package.json +46 -0
- murm-0.2.0/frontend/node_modules/iconv-lite/Changelog.md +212 -0
- murm-0.2.0/frontend/node_modules/iconv-lite/LICENSE +21 -0
- murm-0.2.0/frontend/node_modules/iconv-lite/README.md +130 -0
- murm-0.2.0/frontend/node_modules/iconv-lite/package.json +44 -0
- murm-0.2.0/frontend/node_modules/internmap/LICENSE +13 -0
- murm-0.2.0/frontend/node_modules/internmap/README.md +94 -0
- murm-0.2.0/frontend/node_modules/internmap/package.json +43 -0
- murm-0.2.0/frontend/node_modules/js-tokens/CHANGELOG.md +151 -0
- murm-0.2.0/frontend/node_modules/js-tokens/LICENSE +21 -0
- murm-0.2.0/frontend/node_modules/js-tokens/README.md +240 -0
- murm-0.2.0/frontend/node_modules/js-tokens/index.js +23 -0
- murm-0.2.0/frontend/node_modules/js-tokens/package.json +30 -0
- murm-0.2.0/frontend/node_modules/json5/LICENSE.md +23 -0
- murm-0.2.0/frontend/node_modules/json5/README.md +282 -0
- murm-0.2.0/frontend/node_modules/json5/package.json +72 -0
- murm-0.2.0/frontend/node_modules/lru-cache/LICENSE +15 -0
- murm-0.2.0/frontend/node_modules/lru-cache/README.md +166 -0
- murm-0.2.0/frontend/node_modules/lru-cache/index.js +334 -0
- murm-0.2.0/frontend/node_modules/lru-cache/package.json +32 -0
- murm-0.2.0/frontend/node_modules/ms/index.js +162 -0
- murm-0.2.0/frontend/node_modules/ms/license.md +21 -0
- murm-0.2.0/frontend/node_modules/ms/package.json +38 -0
- murm-0.2.0/frontend/node_modules/ms/readme.md +59 -0
- murm-0.2.0/frontend/node_modules/nanoid/LICENSE +20 -0
- murm-0.2.0/frontend/node_modules/nanoid/README.md +39 -0
- murm-0.2.0/frontend/node_modules/nanoid/index.browser.cjs +72 -0
- murm-0.2.0/frontend/node_modules/nanoid/index.browser.js +34 -0
- murm-0.2.0/frontend/node_modules/nanoid/index.cjs +85 -0
- murm-0.2.0/frontend/node_modules/nanoid/index.d.cts +91 -0
- murm-0.2.0/frontend/node_modules/nanoid/index.d.ts +91 -0
- murm-0.2.0/frontend/node_modules/nanoid/index.js +45 -0
- murm-0.2.0/frontend/node_modules/nanoid/nanoid.js +1 -0
- murm-0.2.0/frontend/node_modules/nanoid/package.json +89 -0
- murm-0.2.0/frontend/node_modules/react-dom/LICENSE +21 -0
- murm-0.2.0/frontend/node_modules/react-dom/README.md +60 -0
- murm-0.2.0/frontend/node_modules/react-dom/client.js +25 -0
- murm-0.2.0/frontend/node_modules/react-dom/index.js +38 -0
- murm-0.2.0/frontend/node_modules/react-dom/package.json +62 -0
- murm-0.2.0/frontend/node_modules/react-dom/profiling.js +38 -0
- murm-0.2.0/frontend/node_modules/react-dom/server.browser.js +17 -0
- murm-0.2.0/frontend/node_modules/react-dom/server.js +3 -0
- murm-0.2.0/frontend/node_modules/react-dom/server.node.js +17 -0
- murm-0.2.0/frontend/node_modules/react-dom/test-utils.js +7 -0
- murm-0.2.0/frontend/node_modules/source-map-js/LICENSE +28 -0
- murm-0.2.0/frontend/node_modules/source-map-js/README.md +765 -0
- murm-0.2.0/frontend/node_modules/source-map-js/package.json +71 -0
- murm-0.2.0/frontend/node_modules/source-map-js/source-map.d.ts +104 -0
- murm-0.2.0/frontend/node_modules/source-map-js/source-map.js +8 -0
- murm-0.2.0/frontend/node_modules/vite/LICENSE.md +3423 -0
- murm-0.2.0/frontend/node_modules/vite/README.md +20 -0
- murm-0.2.0/frontend/node_modules/vite/client.d.ts +256 -0
- murm-0.2.0/frontend/node_modules/vite/index.cjs +60 -0
- murm-0.2.0/frontend/node_modules/vite/index.d.cts +6 -0
- murm-0.2.0/frontend/node_modules/vite/package.json +191 -0
- murm-0.2.0/frontend/node_modules/yallist/LICENSE +15 -0
- murm-0.2.0/frontend/node_modules/yallist/README.md +204 -0
- murm-0.2.0/frontend/node_modules/yallist/iterator.js +8 -0
- murm-0.2.0/frontend/node_modules/yallist/package.json +29 -0
- murm-0.2.0/frontend/node_modules/yallist/yallist.js +426 -0
- murm-0.2.0/frontend/package 2.json +22 -0
- murm-0.2.0/frontend/package-lock.json +2179 -0
- murm-0.2.0/frontend/package.json +22 -0
- murm-0.2.0/frontend/src/App.jsx +465 -0
- murm-0.2.0/frontend/src/components/GraphPanel 2.jsx +507 -0
- murm-0.2.0/frontend/src/main.jsx +9 -0
- murm-0.2.0/frontend/vite.config.js +15 -0
- murm-0.2.0/murm/__init__.py +1 -0
- murm-0.2.0/murm/agents/__init__.py +0 -0
- murm-0.2.0/murm/agents/generator.py +210 -0
- murm-0.2.0/murm/agents/model.py +126 -0
- murm-0.2.0/murm/analysis/__init__.py +0 -0
- murm-0.2.0/murm/analysis/calibration.py +157 -0
- murm-0.2.0/murm/analysis/report_agent.py +201 -0
- murm-0.2.0/murm/api/__init__.py +0 -0
- murm-0.2.0/murm/api/app.py +61 -0
- murm-0.2.0/murm/api/routes/graph 2.py +179 -0
- murm-0.2.0/murm/api/store.py +255 -0
- murm-0.2.0/murm/cli.py +336 -0
- murm-0.2.0/murm/config.py +98 -0
- murm-0.2.0/murm/graph/__init__.py +0 -0
- murm-0.2.0/murm/graph/embedder.py +101 -0
- murm-0.2.0/murm/graph/engine.py +178 -0
- murm-0.2.0/murm/graph/extractor.py +152 -0
- murm-0.2.0/murm/llm/__init__.py +0 -0
- murm-0.2.0/murm/llm/budget.py +223 -0
- murm-0.2.0/murm/llm/provider.py +166 -0
- murm-0.2.0/murm/main.py +4 -0
- murm-0.2.0/murm/simulation/__init__.py +0 -0
- murm-0.2.0/murm/simulation/engine.py +370 -0
- murm-0.2.0/murm/simulation/environment.py +200 -0
- murm-0.2.0/murm/simulation/metrics.py +228 -0
- murm-0.2.0/murm/simulation/trace.py +62 -0
- murm-0.2.0/murm/simulation/web.py +67 -0
- murm-0.2.0/murm/utils/__init__.py +1 -0
- murm-0.2.0/murm/utils/text.py +44 -0
- murm-0.2.0/paper/eval.py +186 -0
- murm-0.2.0/paper/eval_seeds.json +23 -0
- murm-0.2.0/paper/references.bib +97 -0
- murm-0.2.0/pyproject.toml +65 -0
- murm-0.2.0/setup_local.sh +134 -0
- murm-0.2.0/test_browser.py +21 -0
- murm-0.2.0/test_chroma.py +18 -0
- murm-0.2.0/test_empty_chroma.py +8 -0
- murm-0.2.0/test_graph.py +34 -0
- murm-0.2.0/test_pipeline.py +17 -0
- murm-0.2.0/test_user_seed.py +58 -0
- murm-0.2.0/tests/__init__.py +0 -0
- murm-0.2.0/tests/test_core.py +486 -0
murm-0.2.0/.env.example
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# MURM environment configuration
|
|
2
|
+
# Copy to .env and fill in your values.
|
|
3
|
+
# All fields have sensible defaults except LLM_API_KEY.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
# LLM provider (orchestration: graph building, report generation)
|
|
7
|
+
# Any model string litellm understands works here.
|
|
8
|
+
#
|
|
9
|
+
# Examples:
|
|
10
|
+
# gpt-4o-mini (OpenAI)
|
|
11
|
+
# claude-3-5-haiku-20241022 (Anthropic)
|
|
12
|
+
# groq/llama-3.1-70b-versatile (Groq — fast and cheap)
|
|
13
|
+
# ollama/llama3.2 (local Ollama)
|
|
14
|
+
# azure/gpt-4o (Azure OpenAI)
|
|
15
|
+
# anthropic/claude-3-haiku-20240307 (Anthropic via litellm prefix)
|
|
16
|
+
|
|
17
|
+
LLM_MODEL=gpt-4o-mini
|
|
18
|
+
LLM_API_KEY=your_api_key_here
|
|
19
|
+
# Only needed if your provider uses a custom base URL (e.g. Azure, local proxy)
|
|
20
|
+
# LLM_BASE_URL=https://your-endpoint.openai.azure.com/
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# Agent model (per-agent inference inside simulation rounds)
|
|
24
|
+
# Can be a cheaper/faster model than the orchestration LLM.
|
|
25
|
+
# Defaults to LLM_MODEL if not set.
|
|
26
|
+
|
|
27
|
+
# AGENT_MODEL=groq/llama-3.1-8b-instant
|
|
28
|
+
# AGENT_API_KEY=your_groq_key_here
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# Token budget (0 = unlimited)
|
|
32
|
+
# Set to a positive integer to cap cumulative token spend per process.
|
|
33
|
+
# The API returns an error if the budget is exceeded mid-run.
|
|
34
|
+
# Useful for cost control during development.
|
|
35
|
+
|
|
36
|
+
TOKEN_BUDGET=0
|
|
37
|
+
|
|
38
|
+
# Storage — all local, no external services required
|
|
39
|
+
|
|
40
|
+
DATA_DIR=data
|
|
41
|
+
CHROMA_PATH=data/chroma
|
|
42
|
+
|
|
43
|
+
# API server
|
|
44
|
+
API_HOST=0.0.0.0
|
|
45
|
+
API_PORT=8000
|
|
46
|
+
# Comma-separated list of allowed CORS origins for the frontend
|
|
47
|
+
CORS_ORIGINS=http://localhost:3000,http://localhost:5173
|
|
48
|
+
|
|
49
|
+
# Simulation defaults (all overridable per-run via API or CLI)
|
|
50
|
+
DEFAULT_AGENTS=50
|
|
51
|
+
DEFAULT_ROUNDS=30
|
|
52
|
+
DEFAULT_SEED=42
|
|
53
|
+
|
|
54
|
+
# Logging
|
|
55
|
+
LOG_LEVEL=INFO
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Contributing to MURM
|
|
2
|
+
|
|
3
|
+
## Development setup
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
git clone https://github.com/AM-2304/murm
|
|
7
|
+
cd murm
|
|
8
|
+
pip install -e ".[dev]"
|
|
9
|
+
cp .env.example .env
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Set at minimum `LLM_API_KEY` and `LLM_MODEL` in `.env`. Any LiteLLM-compatible model string works.
|
|
13
|
+
|
|
14
|
+
## Running tests
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
python -m pytest tests/ -v
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The test suite covers all deterministic components and requires no LLM API key. Tests that invoke the LLM are integration tests and are not part of the default suite.
|
|
21
|
+
|
|
22
|
+
## Code style
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
python -m ruff check murm/
|
|
26
|
+
python -m ruff format murm/
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Project structure for contributors
|
|
30
|
+
|
|
31
|
+
Each module has a single responsibility. The dependency graph flows strictly downward:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
config.py
|
|
35
|
+
↓
|
|
36
|
+
llm/ (provider, budget)
|
|
37
|
+
↓
|
|
38
|
+
graph/ (engine, embedder, extractor)
|
|
39
|
+
agents/ (model, generator)
|
|
40
|
+
↓
|
|
41
|
+
simulation/ (engine, environment, metrics, trace)
|
|
42
|
+
↓
|
|
43
|
+
analysis/ (report_agent, calibration)
|
|
44
|
+
↓
|
|
45
|
+
api/ (store, app, routes)
|
|
46
|
+
cli.py
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Nothing in `simulation/` imports from `api/`. Nothing in `graph/` imports from `agents/`. Circular imports will break the test suite.
|
|
50
|
+
|
|
51
|
+
## Adding a new environment
|
|
52
|
+
|
|
53
|
+
Create a class in `murm/simulation/environment.py` that extends `Environment` and implements three methods:
|
|
54
|
+
|
|
55
|
+
```python
|
|
56
|
+
class MyEnvironment(Environment):
|
|
57
|
+
def get_context_feed(self, round_num: int, max_items: int = 10) -> list[str]: ...
|
|
58
|
+
def ingest_action(self, action: dict) -> None: ...
|
|
59
|
+
def inject_external_event(self, content: str, source: str, round_num: int) -> None: ...
|
|
60
|
+
def get_all_posts(self) -> list[dict]: ...
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Register it in the `build_environment()` factory dict.
|
|
64
|
+
|
|
65
|
+
## Adding a new emergence metric
|
|
66
|
+
|
|
67
|
+
Add a function to `murm/simulation/metrics.py` following the pattern of the existing helpers. Call it inside `MetricsCollector.record_round()` and include the result in the returned dict. Add a corresponding test in `tests/test_core.py`.
|
|
68
|
+
|
|
69
|
+
## Pull request checklist
|
|
70
|
+
|
|
71
|
+
- [ ] All existing tests pass (`pytest tests/`)
|
|
72
|
+
- [ ] New functionality has tests
|
|
73
|
+
- [ ] No circular imports introduced
|
|
74
|
+
- [ ] No hardcoded API keys, model names, or file paths
|
|
75
|
+
- [ ] Comments in English only
|
|
76
|
+
- [ ] No emojis in code or comments
|
|
77
|
+
|
|
78
|
+
## Reporting issues
|
|
79
|
+
|
|
80
|
+
Please include: OS, Python version, LLM provider and model, the exact error message, and the minimum seed text that reproduces the issue. Issues without reproduction steps will be triaged last.
|
murm-0.2.0/Dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
FROM python:3.12-slim
|
|
2
|
+
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
|
|
5
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
6
|
+
curl \
|
|
7
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
8
|
+
|
|
9
|
+
COPY pyproject.toml .
|
|
10
|
+
COPY README.md .
|
|
11
|
+
COPY murm/ murm/
|
|
12
|
+
|
|
13
|
+
RUN pip install --no-cache-dir -e . \
|
|
14
|
+
&& python -c "from chromadb import PersistentClient"
|
|
15
|
+
|
|
16
|
+
EXPOSE 8000
|
|
17
|
+
|
|
18
|
+
CMD ["uvicorn", "murm.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
murm-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Akhilesh M
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
murm-0.2.0/PARAMETERS.md
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# MURM COMPLETE PARAMETER REFERENCE
|
|
2
|
+
Every tunable value in the system, where it lives, what it does, and what changing it affects.
|
|
3
|
+
|
|
4
|
+
## TIER 1: .env FILE: Global defaults, no code change needed
|
|
5
|
+
|
|
6
|
+
### DEFAULT_AGENTS=50
|
|
7
|
+
File: config.py -> Settings.default_agents
|
|
8
|
+
What: Pre-fills the agent count in the UI and CLI default.
|
|
9
|
+
Effect: More agents = more diverse opinions, more LLM calls, higher cost.
|
|
10
|
+
Recommendation: Use 20 for testing, 50-100 for real runs.
|
|
11
|
+
Rule of thumb: double agents = double cost, diminishing returns above 100.
|
|
12
|
+
|
|
13
|
+
### DEFAULT_ROUNDS=30
|
|
14
|
+
File: config.py -> Settings.default_rounds
|
|
15
|
+
What: Pre-fills the rounds slider in the UI.
|
|
16
|
+
Effect: More rounds = more interaction cycles, slower convergence detection.
|
|
17
|
+
Recommendation: Use 15 for testing, 30-50 for real runs.
|
|
18
|
+
|
|
19
|
+
### DEFAULT_SEED=42
|
|
20
|
+
File: config.py -> Settings.default_seed
|
|
21
|
+
What: The starting number for all randomness in the simulation.
|
|
22
|
+
Effect: Same seed + same inputs = identical output every time.
|
|
23
|
+
Change this to get a different-but-reproducible run.
|
|
24
|
+
|
|
25
|
+
### TOKEN_BUDGET=0
|
|
26
|
+
File: config.py -> Settings.token_budget
|
|
27
|
+
What: Hard cap on total tokens across the entire process.
|
|
28
|
+
Effect: 0 = no limit. Any positive integer stops the run if exceeded.
|
|
29
|
+
200000 tokens ≈ $0.02 on Groq, $0.06 on gpt-4o-mini.
|
|
30
|
+
|
|
31
|
+
### LOG_LEVEL=INFO
|
|
32
|
+
File: config.py -> Settings.log_level
|
|
33
|
+
What: How much detail appears in your terminal.
|
|
34
|
+
Values: DEBUG (every LLM call), INFO (normal), WARNING (errors only)
|
|
35
|
+
Recommendation: Use DEBUG when something is not working.
|
|
36
|
+
|
|
37
|
+
## TIER 2: API REQUEST BODY: Per-run overrides
|
|
38
|
+
|
|
39
|
+
These are the values you set in the UI or pass in the API request body.
|
|
40
|
+
They override the .env defaults for a single run only.
|
|
41
|
+
|
|
42
|
+
### n_agents: 5-500
|
|
43
|
+
UI: "Agents" slider in RunForm
|
|
44
|
+
API: {"n_agents": 30}
|
|
45
|
+
CLI: --agents 30
|
|
46
|
+
|
|
47
|
+
### n_rounds: 5-200
|
|
48
|
+
UI: "Rounds" slider in RunForm
|
|
49
|
+
API: {"n_rounds": 20}
|
|
50
|
+
CLI: --rounds 20
|
|
51
|
+
|
|
52
|
+
### seed: any integer
|
|
53
|
+
UI: "Random seed" field
|
|
54
|
+
API: {"seed": 99}
|
|
55
|
+
CLI: --seed 99
|
|
56
|
+
|
|
57
|
+
### n_sensitivity_seeds: 1-5
|
|
58
|
+
UI: "Sensitivity seeds" field
|
|
59
|
+
API: {"n_sensitivity_seeds": 3}
|
|
60
|
+
CLI: --seeds 3
|
|
61
|
+
Effect: Runs the simulation N times with seed, seed+1, seed+2...
|
|
62
|
+
and produces an uncertainty statement comparing outcomes.
|
|
63
|
+
|
|
64
|
+
### environment_type: "forum" or "town_hall"
|
|
65
|
+
UI: "Environment" dropdown
|
|
66
|
+
API: {"environment_type": "town_hall"}
|
|
67
|
+
CLI: --env town_hall
|
|
68
|
+
Effect: forum = open discussion noticeboard
|
|
69
|
+
town_hall = structured agenda, each round is an agenda item
|
|
70
|
+
|
|
71
|
+
### opinion_distribution: "normal", "bimodal", "power_law", "uniform"
|
|
72
|
+
UI: "Opinion distribution" dropdown
|
|
73
|
+
API: {"opinion_distribution": "bimodal"}
|
|
74
|
+
CLI: --opinion-dist bimodal
|
|
75
|
+
Effect: Controls starting stance spread across the population.
|
|
76
|
+
|
|
77
|
+
### skip_graph: true or false
|
|
78
|
+
UI: not in UI yet (API and CLI only)
|
|
79
|
+
API: {"skip_graph": true}
|
|
80
|
+
CLI: --skip-graph
|
|
81
|
+
Effect: Bypasses knowledge graph extraction. Faster but agents
|
|
82
|
+
have no factual grounding — more hallucination risk.
|
|
83
|
+
|
|
84
|
+
### counterfactual_events: list of {round, content, source}
|
|
85
|
+
UI: "Counterfactual events" builder in RunForm
|
|
86
|
+
API: {"counterfactual_events": [{"round": 10, "content": "New study contradicts claims", "source": "Reuters"}]}
|
|
87
|
+
CLI: not available (use API directly for this)
|
|
88
|
+
|
|
89
|
+
## TIER 3: CODE CONSTANTS: Structural changes, edit the source
|
|
90
|
+
|
|
91
|
+
### Agent influence role distribution
|
|
92
|
+
File: murm/agents/generator.py, line ~35
|
|
93
|
+
Variable: _INFLUENCE_ROLE_WEIGHTS
|
|
94
|
+
Current values:
|
|
95
|
+
INFLUENCER: 5% (high reach, infrequent posting)
|
|
96
|
+
ACTIVE_USER: 25% (moderate reach and frequency)
|
|
97
|
+
PASSIVE_USER: 55% (low reach, mostly reactive)
|
|
98
|
+
SKEPTIC: 10% (challenges dominant narratives)
|
|
99
|
+
AMPLIFIER: 5% (reposts/shares, low original content)
|
|
100
|
+
Change to: reflect your domain's actual participation pattern.
|
|
101
|
+
|
|
102
|
+
### Example for a scientific community:
|
|
103
|
+
_INFLUENCE_ROLE_WEIGHTS = {
|
|
104
|
+
InfluenceRole.INFLUENCER: 0.03,
|
|
105
|
+
InfluenceRole.ACTIVE_USER: 0.40,
|
|
106
|
+
InfluenceRole.PASSIVE_USER: 0.35,
|
|
107
|
+
InfluenceRole.SKEPTIC: 0.15,
|
|
108
|
+
InfluenceRole.AMPLIFIER: 0.07,
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
### Opinion scale definitions
|
|
112
|
+
File: murm/agents/model.py
|
|
113
|
+
Enum: OpinionBias
|
|
114
|
+
Current: strongly_agree, agree, neutral, disagree, strongly_disagree
|
|
115
|
+
To add a domain-specific scale (e.g. for financial sentiment):
|
|
116
|
+
class OpinionBias(str, Enum):
|
|
117
|
+
BULLISH = "bullish"
|
|
118
|
+
CAUTIOUSLY_BULLISH = "cautiously_bullish"
|
|
119
|
+
NEUTRAL = "neutral"
|
|
120
|
+
CAUTIOUSLY_BEARISH = "cautiously_bearish"
|
|
121
|
+
BEARISH = "bearish"
|
|
122
|
+
Then update _OPINION_VALUES in metrics.py accordingly.
|
|
123
|
+
|
|
124
|
+
### Environment context feed size
|
|
125
|
+
File: murm/simulation/environment.py
|
|
126
|
+
Method: get_context_feed(self, round_num, max_items=10)
|
|
127
|
+
Default: 10 posts visible to each agent per round
|
|
128
|
+
Effect: More = richer context but longer prompts and higher cost.
|
|
129
|
+
Less = faster and cheaper but agents have less to react to.
|
|
130
|
+
### To change globally:
|
|
131
|
+
def get_context_feed(self, round_num: int, max_items: int = 5) -> list[str]:
|
|
132
|
+
|
|
133
|
+
### RAG context per agent turn
|
|
134
|
+
File: murm/simulation/engine.py, inside _agent_turn method
|
|
135
|
+
Variable: top_k in embedder.query call (currently 3)
|
|
136
|
+
Effect: How many knowledge graph facts each agent sees per turn.
|
|
137
|
+
Increase to reduce hallucination, at the cost of longer prompts.
|
|
138
|
+
### Current:
|
|
139
|
+
hits = self._embedder.query(state.last_action_summary, top_k=3)
|
|
140
|
+
Change to top_k=5 for better grounding, top_k=1 for minimal cost.
|
|
141
|
+
|
|
142
|
+
### Distance threshold for RAG facts
|
|
143
|
+
File: murm/simulation/engine.py, inside _agent_turn method
|
|
144
|
+
Current: h["distance"] < 0.8 (filters out loosely related facts)
|
|
145
|
+
Lower value = stricter matching (only very relevant facts shown)
|
|
146
|
+
Higher value = looser matching (more facts shown, some less relevant)
|
|
147
|
+
Change: h["distance"] < 0.6 for strict, h["distance"] < 0.9 for loose
|
|
148
|
+
|
|
149
|
+
### ReACT report agent iteration limit
|
|
150
|
+
File: murm/analysis/report_agent.py
|
|
151
|
+
Variable: MAX_REACT_ITERATIONS = 12
|
|
152
|
+
Effect: Maximum number of tool calls before the report is written.
|
|
153
|
+
Increase for more thorough analysis (more cost).
|
|
154
|
+
Decrease for faster, cheaper but shallower reports.
|
|
155
|
+
|
|
156
|
+
### Sensitivity variance thresholds
|
|
157
|
+
File: murm/analysis/calibration.py
|
|
158
|
+
Function: _variance_label(std: float) -> str
|
|
159
|
+
Current: low < 0.05, medium 0.05-0.15, high > 0.15
|
|
160
|
+
Adjust to match your domain's expected variance.
|
|
161
|
+
|
|
162
|
+
### Entropy convergence detection
|
|
163
|
+
File: murm/simulation/metrics.py
|
|
164
|
+
Variable: _ENTROPY_CONVERGENCE_THRESHOLD = 0.05
|
|
165
|
+
Effect: How stable opinion entropy must be (for 3 consecutive rounds)
|
|
166
|
+
before the system declares the simulation has "settled."
|
|
167
|
+
|
|
168
|
+
### Maximum concurrent agents per round
|
|
169
|
+
File: murm/simulation/engine.py
|
|
170
|
+
Class: SimulationConfig
|
|
171
|
+
Field: max_concurrent_agents: int = 10
|
|
172
|
+
Effect: How many agent LLM calls run in parallel.
|
|
173
|
+
Higher = faster simulation but more API rate limit risk.
|
|
174
|
+
Lower = safer but slower.
|
|
175
|
+
Change in the API request body: {"max_concurrent_agents": 5}
|
|
176
|
+
Or modify the dataclass default directly.
|
|
177
|
+
|
|
178
|
+
## TIER 4: PERSONA PROMPT: Change what kind of person is generated
|
|
179
|
+
|
|
180
|
+
File: murm/agents/generator.py
|
|
181
|
+
Variable: _PERSONA_SYSTEM (the system prompt for persona generation)
|
|
182
|
+
Current: generates socially diverse archetypes via randomly seeded demographics
|
|
183
|
+
(e.g., "Gen Z College Student", "Rural Small Business Owner")
|
|
184
|
+
To create domain-specific personas, change the system prompt.
|
|
185
|
+
|
|
186
|
+
### Example for financial analysts:
|
|
187
|
+
_PERSONA_SYSTEM = """You are creating realistic financial market participants.
|
|
188
|
+
Generate exactly ONE person profile as valid JSON.
|
|
189
|
+
The person must have genuine financial market experience.
|
|
190
|
+
Their opinion reflects their portfolio position and risk tolerance.
|
|
191
|
+
... """
|
|
192
|
+
|
|
193
|
+
### Example for policy stakeholders:
|
|
194
|
+
_PERSONA_SYSTEM = """You are creating realistic policy stakeholders.
|
|
195
|
+
Each person represents a real constituency: NGO worker, small business owner,
|
|
196
|
+
academic researcher, government official, affected community member, etc.
|
|
197
|
+
... """
|
|
198
|
+
|
|
199
|
+
## TIER 5: AGENT ACTION PROMPT: What agents actually DO each round
|
|
200
|
+
|
|
201
|
+
File: murm/simulation/engine.py
|
|
202
|
+
Variable: _AGENT_SYSTEM (the system prompt governing agent behavior)
|
|
203
|
+
Current: Simulates social media users (post, reply, share, abstain)
|
|
204
|
+
|
|
205
|
+
### To simulate policy deliberation (not social media):
|
|
206
|
+
_AGENT_SYSTEM = """You are simulating a stakeholder in a policy consultation.
|
|
207
|
+
Stay completely in character. Respond ONLY with valid JSON:
|
|
208
|
+
{
|
|
209
|
+
"action": "statement" | "question" | "objection" | "support" | "abstain",
|
|
210
|
+
"content": "your spoken contribution (empty string if abstaining)",
|
|
211
|
+
"opinion_shift": "strongly_agree|agree|neutral|disagree|strongly_disagree or null",
|
|
212
|
+
"reasoning": "1 sentence internal justification"
|
|
213
|
+
}
|
|
214
|
+
opinion_shift reflects your stance AFTER the discussion — null if unchanged."""
|
|
215
|
+
|
|
216
|
+
### To simulate financial market commentary:
|
|
217
|
+
_AGENT_SYSTEM = """You are simulating a financial market participant.
|
|
218
|
+
Respond ONLY with valid JSON:
|
|
219
|
+
{
|
|
220
|
+
"action": "buy_signal" | "sell_signal" | "hold" | "comment" | "abstain",
|
|
221
|
+
"content": "your public comment or analysis",
|
|
222
|
+
"opinion_shift": "bullish|cautiously_bullish|neutral|cautiously_bearish|bearish or null",
|
|
223
|
+
"reasoning": "1 sentence rationale"
|
|
224
|
+
}"""
|