maref 0.30.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.
Files changed (1015) hide show
  1. maref-0.30.0/.chaos-reports/full-run-20260523-191257.json +1 -0
  2. maref-0.30.0/.env.example +45 -0
  3. maref-0.30.0/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  4. maref-0.30.0/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
  5. maref-0.30.0/.github/PULL_REQUEST_TEMPLATE.md +30 -0
  6. maref-0.30.0/.github/dependabot.yml +40 -0
  7. maref-0.30.0/.github/workflows/ci.yml +81 -0
  8. maref-0.30.0/.github/workflows/docker.yml +220 -0
  9. maref-0.30.0/.github/workflows/formal-verify.yml +27 -0
  10. maref-0.30.0/.github/workflows/frontend-security.yml +44 -0
  11. maref-0.30.0/.github/workflows/lighthouse.yml +58 -0
  12. maref-0.30.0/.github/workflows/performance.yml +19 -0
  13. maref-0.30.0/.github/workflows/release-gate.yml +86 -0
  14. maref-0.30.0/.github/workflows/release.yml +103 -0
  15. maref-0.30.0/.github/workflows/security-scan.yml +75 -0
  16. maref-0.30.0/.github/workflows/sonarcloud.yml +27 -0
  17. maref-0.30.0/.gitignore +154 -0
  18. maref-0.30.0/.pre-commit-config.yaml +24 -0
  19. maref-0.30.0/AGENTS.md +146 -0
  20. maref-0.30.0/AIP-ACPs-Technical-Analysis.md +228 -0
  21. maref-0.30.0/CHANGELOG.md +555 -0
  22. maref-0.30.0/CLA.md +63 -0
  23. maref-0.30.0/CODE_OF_CONDUCT.md +44 -0
  24. maref-0.30.0/CONTRIBUTING.md +85 -0
  25. maref-0.30.0/Dockerfile +69 -0
  26. maref-0.30.0/LICENSE +190 -0
  27. maref-0.30.0/LICENSES/Apache-2.0.txt +190 -0
  28. maref-0.30.0/NOTICE +39 -0
  29. maref-0.30.0/PKG-INFO +212 -0
  30. maref-0.30.0/README.md +128 -0
  31. maref-0.30.0/SECURITY.md +80 -0
  32. maref-0.30.0/SLO.md +26 -0
  33. maref-0.30.0/cli_percv_demo.py +173 -0
  34. maref-0.30.0/configs/grafana/maref-dashboard.json +158 -0
  35. maref-0.30.0/data/cache/.gitkeep +0 -0
  36. maref-0.30.0/data/logs/.gitkeep +0 -0
  37. maref-0.30.0/data/raw/.gitkeep +0 -0
  38. maref-0.30.0/data-original/logs/.gitkeep +0 -0
  39. maref-0.30.0/data-original/results/.gitkeep +0 -0
  40. maref-0.30.0/docs/CRASH_PREVENTION_GUIDE.md +195 -0
  41. maref-0.30.0/docs/MAREF-Security-Whitepaper.md +212 -0
  42. maref-0.30.0/docs/MAREF-Technical-Whitepaper-arXiv.md +592 -0
  43. maref-0.30.0/docs/MAREF-Technical-Whitepaper-zh-CN.md +586 -0
  44. maref-0.30.0/docs/MAREF_200/350/275/256/351/200/222/345/275/222/346/224/266/346/225/233/346/200/273/347/273/223/345/275/222/346/241/243/346/212/245/345/221/212_20260517.md +250 -0
  45. maref-0.30.0/docs/MAREF_CRASH_PREVENTION_REPORT.md +232 -0
  46. maref-0.30.0/docs/adr-001-tauri-architecture.md +50 -0
  47. maref-0.30.0/docs/aip-pioneer-application.md +144 -0
  48. maref-0.30.0/docs/api.md +427 -0
  49. maref-0.30.0/docs/archive/phase_o_observability_archive.md +46 -0
  50. maref-0.30.0/docs/arxiv-submission/main.tex +637 -0
  51. maref-0.30.0/docs/arxiv-submission/references.bib +74 -0
  52. maref-0.30.0/docs/backup-strategy.md +221 -0
  53. maref-0.30.0/docs/canary-release-plan.md +247 -0
  54. maref-0.30.0/docs/chaos-scenarios.md +379 -0
  55. maref-0.30.0/docs/code-signing-process.md +85 -0
  56. maref-0.30.0/docs/convergence-whitepaper.md +231 -0
  57. maref-0.30.0/docs/deployment.md +303 -0
  58. maref-0.30.0/docs/development.md +187 -0
  59. maref-0.30.0/docs/emergency-contacts.md +192 -0
  60. maref-0.30.0/docs/error-code-mapping.md +34 -0
  61. maref-0.30.0/docs/escalation-path.md +228 -0
  62. maref-0.30.0/docs/ga-release-checklist.md +43 -0
  63. maref-0.30.0/docs/github-release-checklist-v0.30.0-GA.md +82 -0
  64. maref-0.30.0/docs/go-no-go-template.md +95 -0
  65. maref-0.30.0/docs/go-to-market-plan.md +31 -0
  66. maref-0.30.0/docs/incident-postmortem-template.md +237 -0
  67. maref-0.30.0/docs/maref-org-ci-workflows.md +378 -0
  68. maref-0.30.0/docs/opc-registration-guide.md +180 -0
  69. maref-0.30.0/docs/ops-faq.md +175 -0
  70. maref-0.30.0/docs/phase_o_observability_audit_report.md +302 -0
  71. maref-0.30.0/docs/plans/2026-05-15-ecosystem-closed-loop.md +2110 -0
  72. maref-0.30.0/docs/post-release-monitoring-checklist.md +77 -0
  73. maref-0.30.0/docs/prr-progress.json +152 -0
  74. maref-0.30.0/docs/quickstart.md +214 -0
  75. maref-0.30.0/docs/release-approval-matrix.md +54 -0
  76. maref-0.30.0/docs/runbook/README.md +29 -0
  77. maref-0.30.0/docs/runbook/rb-001-sidecar-down.md +58 -0
  78. maref-0.30.0/docs/runbook/rb-002-governance-latency.md +45 -0
  79. maref-0.30.0/docs/runbook/rb-003-drift-detected.md +38 -0
  80. maref-0.30.0/docs/runbook/rb-004-audit-log-failure.md +41 -0
  81. maref-0.30.0/docs/runbook/rb-005-memory-growth.md +44 -0
  82. maref-0.30.0/docs/runbook/rb-006-high-latency.md +60 -0
  83. maref-0.30.0/docs/runbook/rb-007-error-budget-burn.md +59 -0
  84. maref-0.30.0/docs/runbook/rb-008-governance-drift.md +54 -0
  85. maref-0.30.0/docs/slo.md +117 -0
  86. maref-0.30.0/docs/trademark-application-checklist.md +236 -0
  87. maref-0.30.0/docs/user-communication-plan.md +35 -0
  88. maref-0.30.0/experiments/formal/MAREFDeskJoint.tla +168 -0
  89. maref-0.30.0/experiments/formal/MAREF_Consensus.tla +208 -0
  90. maref-0.30.0/experiments/formal/MAREF_ConsensusMC.cfg +26 -0
  91. maref-0.30.0/experiments/formal/MarefLite.tla +104 -0
  92. maref-0.30.0/experiments/formal/MarefLiteMC.cfg +25 -0
  93. maref-0.30.0/experiments/formal/MarefLiteModel.tla +159 -0
  94. maref-0.30.0/experiments/formal/README.md +53 -0
  95. maref-0.30.0/experiments/maref_implementation/gray_code.py +245 -0
  96. maref-0.30.0/experiments/maref_implementation/hexagram.py +292 -0
  97. maref-0.30.0/experiments/maref_implementation/state_space.py +422 -0
  98. maref-0.30.0/experiments/maref_implementation/three_talents_orchestrator.py +458 -0
  99. maref-0.30.0/experiments/quick_test.py +40 -0
  100. maref-0.30.0/experiments/results_analysis/baseline_results.json +356 -0
  101. maref-0.30.0/experiments/results_analysis/maref_results.json +586 -0
  102. maref-0.30.0/experiments/results_analysis/validation_report.json +195 -0
  103. maref-0.30.0/experiments/simulation_engine/athena_queue_simulator.py +649 -0
  104. maref-0.30.0/experiments/test_imports.py +52 -0
  105. maref-0.30.0/experiments/test_scenarios/baseline_scenario.py +285 -0
  106. maref-0.30.0/experiments/test_scenarios/maref_scenario.py +719 -0
  107. maref-0.30.0/experiments/validation_protocols/run_validation.py +998 -0
  108. maref-0.30.0/gui/.gitignore +26 -0
  109. maref-0.30.0/gui/README.md +73 -0
  110. maref-0.30.0/gui/electron/entitlements.mac.plist +12 -0
  111. maref-0.30.0/gui/electron/main.cjs +151 -0
  112. maref-0.30.0/gui/electron/preload.cjs +20 -0
  113. maref-0.30.0/gui/eslint.config.js +22 -0
  114. maref-0.30.0/gui/index.html +13 -0
  115. maref-0.30.0/gui/package.json +162 -0
  116. maref-0.30.0/gui/pet.html +301 -0
  117. maref-0.30.0/gui/pnpm-lock.yaml +7811 -0
  118. maref-0.30.0/gui/public/favicon.svg +1 -0
  119. maref-0.30.0/gui/public/icons.svg +24 -0
  120. maref-0.30.0/gui/public/sw.js +68 -0
  121. maref-0.30.0/gui/src/App.tsx +322 -0
  122. maref-0.30.0/gui/src/api/client.ts +229 -0
  123. maref-0.30.0/gui/src/api/mock.ts +373 -0
  124. maref-0.30.0/gui/src/components/chat/AgentCapabilities.tsx +39 -0
  125. maref-0.30.0/gui/src/components/chat/ArtifactCard.tsx +137 -0
  126. maref-0.30.0/gui/src/components/chat/ChatInput.tsx +258 -0
  127. maref-0.30.0/gui/src/components/chat/ControlBar.tsx +143 -0
  128. maref-0.30.0/gui/src/components/chat/MessageBubble.tsx +124 -0
  129. maref-0.30.0/gui/src/components/chat/MessageList.tsx +69 -0
  130. maref-0.30.0/gui/src/components/chat/PermissionBanner.tsx +107 -0
  131. maref-0.30.0/gui/src/components/chat/SceneCards.tsx +91 -0
  132. maref-0.30.0/gui/src/components/chat/ThinkingIndicator.tsx +18 -0
  133. maref-0.30.0/gui/src/components/chat/ToolCall.tsx +88 -0
  134. maref-0.30.0/gui/src/components/common/ErrorBoundary.tsx +68 -0
  135. maref-0.30.0/gui/src/components/common/ErrorDisplay.tsx +56 -0
  136. maref-0.30.0/gui/src/components/common/HITLConfirmationDialog.tsx +134 -0
  137. maref-0.30.0/gui/src/components/common/LanguageSwitch.tsx +51 -0
  138. maref-0.30.0/gui/src/components/layout/ChatPanel.tsx +96 -0
  139. maref-0.30.0/gui/src/components/layout/CommandPalette.tsx +112 -0
  140. maref-0.30.0/gui/src/components/layout/HomeDashboard.tsx +165 -0
  141. maref-0.30.0/gui/src/components/layout/MarefDrawer.tsx +100 -0
  142. maref-0.30.0/gui/src/components/layout/ResizeHandle.tsx +32 -0
  143. maref-0.30.0/gui/src/components/layout/Sidebar.tsx +277 -0
  144. maref-0.30.0/gui/src/components/layout/StatusBar.tsx +104 -0
  145. maref-0.30.0/gui/src/components/layout/TabBar.tsx +51 -0
  146. maref-0.30.0/gui/src/components/layout/TerminalPanel.tsx +351 -0
  147. maref-0.30.0/gui/src/components/onboarding/WelcomeFlow.tsx +326 -0
  148. maref-0.30.0/gui/src/components/sidebar/AgentList.tsx +43 -0
  149. maref-0.30.0/gui/src/components/sidebar/FileTree.tsx +122 -0
  150. maref-0.30.0/gui/src/components/sidebar/FileTreeItem.tsx +129 -0
  151. maref-0.30.0/gui/src/components/sidebar/ProviderSelector.tsx +66 -0
  152. maref-0.30.0/gui/src/components/sidebar/TaskList.tsx +59 -0
  153. maref-0.30.0/gui/src/components/status/ContextGauge.tsx +23 -0
  154. maref-0.30.0/gui/src/components/status/EnvIndicator.tsx +28 -0
  155. maref-0.30.0/gui/src/components/status/GovernanceStatus.tsx +64 -0
  156. maref-0.30.0/gui/src/components/status/PetIndicator.tsx +85 -0
  157. maref-0.30.0/gui/src/components/status/TokenUsage.tsx +74 -0
  158. maref-0.30.0/gui/src/components/tools/ToolPanelView.tsx +224 -0
  159. maref-0.30.0/gui/src/components/tools/index.ts +1 -0
  160. maref-0.30.0/gui/src/components/views/AnomalyMonitorView.tsx +185 -0
  161. maref-0.30.0/gui/src/components/views/AuditLogView.tsx +177 -0
  162. maref-0.30.0/gui/src/components/views/AutomationView.tsx +288 -0
  163. maref-0.30.0/gui/src/components/views/BrowserView.tsx +242 -0
  164. maref-0.30.0/gui/src/components/views/DesktopAgentView.tsx +636 -0
  165. maref-0.30.0/gui/src/components/views/DriftDetectionView.tsx +191 -0
  166. maref-0.30.0/gui/src/components/views/ExecutionPreview.tsx +286 -0
  167. maref-0.30.0/gui/src/components/views/FormalVerificationView.tsx +209 -0
  168. maref-0.30.0/gui/src/components/views/GitView.tsx +312 -0
  169. maref-0.30.0/gui/src/components/views/GovernanceView.tsx +231 -0
  170. maref-0.30.0/gui/src/components/views/HITLView.tsx +241 -0
  171. maref-0.30.0/gui/src/components/views/MarefViews.tsx +7 -0
  172. maref-0.30.0/gui/src/components/views/PetBuddy.tsx +137 -0
  173. maref-0.30.0/gui/src/components/views/SettingsView.tsx +176 -0
  174. maref-0.30.0/gui/src/components/views/SkillsPanel.tsx +332 -0
  175. maref-0.30.0/gui/src/components/views/TaskPanelView.tsx +355 -0
  176. maref-0.30.0/gui/src/components/views/TrustScoreView.tsx +228 -0
  177. maref-0.30.0/gui/src/hooks/useChatStream.ts +109 -0
  178. maref-0.30.0/gui/src/hooks/useKeyboard.ts +56 -0
  179. maref-0.30.0/gui/src/hooks/useProviders.ts +18 -0
  180. maref-0.30.0/gui/src/hooks/useSession.ts +173 -0
  181. maref-0.30.0/gui/src/hooks/useTerminal.ts +101 -0
  182. maref-0.30.0/gui/src/index.css +78 -0
  183. maref-0.30.0/gui/src/main.tsx +44 -0
  184. maref-0.30.0/gui/src/middleware/csp.ts +54 -0
  185. maref-0.30.0/gui/src/stores/chatStore.ts +79 -0
  186. maref-0.30.0/gui/src/stores/hitlStore.ts +106 -0
  187. maref-0.30.0/gui/src/stores/sessionStore.ts +98 -0
  188. maref-0.30.0/gui/src/stores/shortcutDefs.ts +204 -0
  189. maref-0.30.0/gui/src/stores/shortcuts.ts +53 -0
  190. maref-0.30.0/gui/src/stores/terminalStore.ts +70 -0
  191. maref-0.30.0/gui/src/stores/uiStore.ts +94 -0
  192. maref-0.30.0/gui/src/types/index.ts +156 -0
  193. maref-0.30.0/gui/src/utils/otel.ts +127 -0
  194. maref-0.30.0/gui/src-tauri/Cargo.lock +5032 -0
  195. maref-0.30.0/gui/src-tauri/Cargo.toml +22 -0
  196. maref-0.30.0/gui/src-tauri/build.rs +3 -0
  197. maref-0.30.0/gui/src-tauri/capabilities/default.json +22 -0
  198. maref-0.30.0/gui/src-tauri/entitlements.plist +12 -0
  199. maref-0.30.0/gui/src-tauri/gen/schemas/acl-manifests.json +1 -0
  200. maref-0.30.0/gui/src-tauri/gen/schemas/capabilities.json +1 -0
  201. maref-0.30.0/gui/src-tauri/gen/schemas/desktop-schema.json +2678 -0
  202. maref-0.30.0/gui/src-tauri/gen/schemas/macOS-schema.json +2678 -0
  203. maref-0.30.0/gui/src-tauri/icons/128x128.png +0 -0
  204. maref-0.30.0/gui/src-tauri/icons/128x128@2x.png +0 -0
  205. maref-0.30.0/gui/src-tauri/icons/32x32.png +0 -0
  206. maref-0.30.0/gui/src-tauri/icons/icon.icns +0 -0
  207. maref-0.30.0/gui/src-tauri/icons/icon.ico +0 -0
  208. maref-0.30.0/gui/src-tauri/src/lib.rs +220 -0
  209. maref-0.30.0/gui/src-tauri/src/main.rs +5 -0
  210. maref-0.30.0/gui/src-tauri/src/pet.rs +77 -0
  211. maref-0.30.0/gui/src-tauri/tauri.conf.json +63 -0
  212. maref-0.30.0/gui/tests/TaskPanelView.test.tsx +249 -0
  213. maref-0.30.0/gui/tests/gui-smoke.test.tsx +175 -0
  214. maref-0.30.0/gui/tests/hitl.test.tsx +257 -0
  215. maref-0.30.0/gui/tests/setup.ts +1 -0
  216. maref-0.30.0/gui/tsconfig.app.json +27 -0
  217. maref-0.30.0/gui/tsconfig.json +7 -0
  218. maref-0.30.0/gui/tsconfig.node.json +24 -0
  219. maref-0.30.0/gui/vite.config.ts +32 -0
  220. maref-0.30.0/gui/vitest.config.ts +16 -0
  221. maref-0.30.0/integration_demo.py +270 -0
  222. maref-0.30.0/k8s/production/configmap.yaml +13 -0
  223. maref-0.30.0/k8s/production/deployment.yaml +91 -0
  224. maref-0.30.0/k8s/production/hpa.yaml +25 -0
  225. maref-0.30.0/k8s/production/networkpolicy.yaml +35 -0
  226. maref-0.30.0/lighthouserc.json +32 -0
  227. maref-0.30.0/mkdocs.yml +80 -0
  228. maref-0.30.0/pyproject.toml +199 -0
  229. maref-0.30.0/pyrightconfig.json +48 -0
  230. maref-0.30.0/requirements.txt +20 -0
  231. maref-0.30.0/research_output/.gitkeep +0 -0
  232. maref-0.30.0/results/experiments/.gitkeep +0 -0
  233. maref-0.30.0/results/feasibility_study/feasibility_analysis_20260419_111915.json +43 -0
  234. maref-0.30.0/results/feasibility_study/feasibility_report_20260419_111915.md +53 -0
  235. maref-0.30.0/results/feasibility_study/latest_summary.md +7 -0
  236. maref-0.30.0/scripts/INSTALL_CRON.md +44 -0
  237. maref-0.30.0/scripts/INSTALL_GIT_GC.md +95 -0
  238. maref-0.30.0/scripts/arxiv_submit.py +577 -0
  239. maref-0.30.0/scripts/backup.sh +411 -0
  240. maref-0.30.0/scripts/benchmark_api.py +99 -0
  241. maref-0.30.0/scripts/benchmark_memory.py +101 -0
  242. maref-0.30.0/scripts/chaos-drill.sh +398 -0
  243. maref-0.30.0/scripts/check-doc-isolation.sh +40 -0
  244. maref-0.30.0/scripts/check_desktop_env.py +394 -0
  245. maref-0.30.0/scripts/com.maref.autoresearch.plist.template +81 -0
  246. maref-0.30.0/scripts/coverage_per_module.py +121 -0
  247. maref-0.30.0/scripts/cron_memory_monitor.sh +26 -0
  248. maref-0.30.0/scripts/desktop_demo_m1.py +129 -0
  249. maref-0.30.0/scripts/emergency_cleanup.sh +67 -0
  250. maref-0.30.0/scripts/export_openapi.py +47 -0
  251. maref-0.30.0/scripts/generate_coverage_report.py +78 -0
  252. maref-0.30.0/scripts/git_gc_optimize.sh +47 -0
  253. maref-0.30.0/scripts/guomi_poc.py +110 -0
  254. maref-0.30.0/scripts/install_windows_service.ps1 +93 -0
  255. maref-0.30.0/scripts/maref-compliance-sidecar.service +43 -0
  256. maref-0.30.0/scripts/maref_env_loader.sh +41 -0
  257. maref-0.30.0/scripts/maref_sidecar_wrapper.sh +88 -0
  258. maref-0.30.0/scripts/maref_wrapper.sh +85 -0
  259. maref-0.30.0/scripts/memory_monitor.py +304 -0
  260. maref-0.30.0/scripts/release-check.sh +22 -0
  261. maref-0.30.0/scripts/resume-session.sh +324 -0
  262. maref-0.30.0/scripts/rollback.sh +264 -0
  263. maref-0.30.0/scripts/run_daily.sh +107 -0
  264. maref-0.30.0/scripts/run_phase1_stress.py +43 -0
  265. maref-0.30.0/scripts/run_phase2_5_stress.py +184 -0
  266. maref-0.30.0/scripts/run_redblue_100.py +163 -0
  267. maref-0.30.0/scripts/security_scan.sh +70 -0
  268. maref-0.30.0/scripts/self_assessment.py +468 -0
  269. maref-0.30.0/scripts/session_recovery.py +602 -0
  270. maref-0.30.0/scripts/setup_desktop.py +319 -0
  271. maref-0.30.0/scripts/setup_env.sh +145 -0
  272. maref-0.30.0/scripts/sidecar_demo.py +331 -0
  273. maref-0.30.0/scripts/sync_reports.sh +48 -0
  274. maref-0.30.0/scripts/sync_version.py +199 -0
  275. maref-0.30.0/scripts/verify_electron_build.sh +120 -0
  276. maref-0.30.0/sdk/typescript/package.json +19 -0
  277. maref-0.30.0/sdk/typescript/src/index.ts +52 -0
  278. maref-0.30.0/sdk/typescript/tsconfig.json +14 -0
  279. maref-0.30.0/simple_integration_demo.py +94 -0
  280. maref-0.30.0/sonar-project.properties +7 -0
  281. maref-0.30.0/src/drift_guard/README.md +108 -0
  282. maref-0.30.0/src/drift_guard/__init__.py +0 -0
  283. maref-0.30.0/src/drift_guard/ab_testing.py +283 -0
  284. maref-0.30.0/src/drift_guard/adaptive_threshold.py +245 -0
  285. maref-0.30.0/src/drift_guard/drift_benchmark.py +346 -0
  286. maref-0.30.0/src/drift_guard/metrics.py +242 -0
  287. maref-0.30.0/src/drift_guard/pipeline.py +312 -0
  288. maref-0.30.0/src/drift_guard/policy_sandbox.py +455 -0
  289. maref-0.30.0/src/drift_guard/py.typed +0 -0
  290. maref-0.30.0/src/drift_guard/types.py +155 -0
  291. maref-0.30.0/src/formal/MAREFDeskJoint.tla +168 -0
  292. maref-0.30.0/src/formal/MAREF_Consensus.tla +208 -0
  293. maref-0.30.0/src/formal/MAREF_ConsensusMC.cfg +26 -0
  294. maref-0.30.0/src/formal/MAREF_TestIntegration.tla +677 -0
  295. maref-0.30.0/src/formal/MAREF_TestIntegrationMC.cfg +28 -0
  296. maref-0.30.0/src/formal/MarefLite.tla +104 -0
  297. maref-0.30.0/src/formal/MarefLiteMC.cfg +25 -0
  298. maref-0.30.0/src/formal/MarefLiteModel.tla +159 -0
  299. maref-0.30.0/src/formal/README.md +53 -0
  300. maref-0.30.0/src/formal/__init__.py +0 -0
  301. maref-0.30.0/src/formal/gray_code_validator.py +187 -0
  302. maref-0.30.0/src/formal/py.typed +0 -0
  303. maref-0.30.0/src/maref/__init__.py +63 -0
  304. maref-0.30.0/src/maref/__main__.py +180 -0
  305. maref-0.30.0/src/maref/agent_card_config.py +202 -0
  306. maref-0.30.0/src/maref/certification.py +593 -0
  307. maref-0.30.0/src/maref/compliance/__init__.py +95 -0
  308. maref-0.30.0/src/maref/compliance/compliance_monitor.py +468 -0
  309. maref-0.30.0/src/maref/compliance/data_sovereignty.py +684 -0
  310. maref-0.30.0/src/maref/compliance/eu_ai_act.py +137 -0
  311. maref-0.30.0/src/maref/compliance/five_eyes.py +173 -0
  312. maref-0.30.0/src/maref/compliance/hipaa/__init__.py +436 -0
  313. maref-0.30.0/src/maref/compliance/pci_dss/__init__.py +453 -0
  314. maref-0.30.0/src/maref/compliance/registry.py +479 -0
  315. maref-0.30.0/src/maref/compliance/report_generator.py +552 -0
  316. maref-0.30.0/src/maref/config.py +45 -0
  317. maref-0.30.0/src/maref/consensus/__init__.py +0 -0
  318. maref-0.30.0/src/maref/consensus/consistency_dsl.py +149 -0
  319. maref-0.30.0/src/maref/consensus/nack_protocol.py +254 -0
  320. maref-0.30.0/src/maref/consensus/vector_clock.py +162 -0
  321. maref-0.30.0/src/maref/cross_validator/__init__.py +39 -0
  322. maref-0.30.0/src/maref/cross_validator/ast_normalizer.py +515 -0
  323. maref-0.30.0/src/maref/cross_validator/consensus_algorithm.py +591 -0
  324. maref-0.30.0/src/maref/crypto/__init__.py +26 -0
  325. maref-0.30.0/src/maref/crypto/aia_adapter.py +163 -0
  326. maref-0.30.0/src/maref/crypto/benchmark.py +150 -0
  327. maref-0.30.0/src/maref/crypto/sm2.py +186 -0
  328. maref-0.30.0/src/maref/crypto/sm3.py +51 -0
  329. maref-0.30.0/src/maref/crypto/sm4.py +44 -0
  330. maref-0.30.0/src/maref/crypto/sm4_gcm.py +192 -0
  331. maref-0.30.0/src/maref/desktop/__init__.py +41 -0
  332. maref-0.30.0/src/maref/desktop/action_recorder.py +239 -0
  333. maref-0.30.0/src/maref/desktop/agent.py +614 -0
  334. maref-0.30.0/src/maref/desktop/api_router.py +275 -0
  335. maref-0.30.0/src/maref/desktop/browser_auth.py +136 -0
  336. maref-0.30.0/src/maref/desktop/browser_controller.py +202 -0
  337. maref-0.30.0/src/maref/desktop/clipboard.py +190 -0
  338. maref-0.30.0/src/maref/desktop/context_isolation.py +203 -0
  339. maref-0.30.0/src/maref/desktop/controller.py +702 -0
  340. maref-0.30.0/src/maref/desktop/desktop_governance.py +182 -0
  341. maref-0.30.0/src/maref/desktop/file_ops.py +284 -0
  342. maref-0.30.0/src/maref/desktop/file_watcher.py +177 -0
  343. maref-0.30.0/src/maref/desktop/input_controller.py +505 -0
  344. maref-0.30.0/src/maref/desktop/mobile_bridge.py +566 -0
  345. maref-0.30.0/src/maref/desktop/opencua_bench.py +455 -0
  346. maref-0.30.0/src/maref/desktop/opencua_loader.py +137 -0
  347. maref-0.30.0/src/maref/desktop/platform_layer.py +134 -0
  348. maref-0.30.0/src/maref/desktop/policy_decision_tree.py +326 -0
  349. maref-0.30.0/src/maref/desktop/safety_gate_desktop.py +262 -0
  350. maref-0.30.0/src/maref/desktop/screen_capture.py +316 -0
  351. maref-0.30.0/src/maref/desktop/screen_parser.py +600 -0
  352. maref-0.30.0/src/maref/desktop/task_executor.py +190 -0
  353. maref-0.30.0/src/maref/desktop/verification.py +334 -0
  354. maref-0.30.0/src/maref/desktop/window_manager.py +361 -0
  355. maref-0.30.0/src/maref/desktop/workflow_templates.py +181 -0
  356. maref-0.30.0/src/maref/eivl/__init__.py +51 -0
  357. maref-0.30.0/src/maref/eivl/merkle_auditor.py +535 -0
  358. maref-0.30.0/src/maref/eivl/wasm_sandbox.py +552 -0
  359. maref-0.30.0/src/maref/evolution/__init__.py +23 -0
  360. maref-0.30.0/src/maref/evolution/__main__.py +102 -0
  361. maref-0.30.0/src/maref/evolution/engine.py +408 -0
  362. maref-0.30.0/src/maref/evolution/metrics.py +222 -0
  363. maref-0.30.0/src/maref/evolution/real_metrics.py +151 -0
  364. maref-0.30.0/src/maref/evolution/reporter.py +108 -0
  365. maref-0.30.0/src/maref/executor/__init__.py +27 -0
  366. maref-0.30.0/src/maref/executor/api.py +177 -0
  367. maref-0.30.0/src/maref/executor/checkpointer.py +196 -0
  368. maref-0.30.0/src/maref/executor/notifications.py +122 -0
  369. maref-0.30.0/src/maref/executor/persistent_store.py +188 -0
  370. maref-0.30.0/src/maref/executor/queue.py +452 -0
  371. maref-0.30.0/src/maref/executor/scheduler.py +253 -0
  372. maref-0.30.0/src/maref/executor/session.py +214 -0
  373. maref-0.30.0/src/maref/executor/types.py +105 -0
  374. maref-0.30.0/src/maref/executor/worker.py +179 -0
  375. maref-0.30.0/src/maref/features/__init__.py +15 -0
  376. maref-0.30.0/src/maref/features/feature_flags.py +167 -0
  377. maref-0.30.0/src/maref/gaas/__init__.py +17 -0
  378. maref-0.30.0/src/maref/gaas/api.py +276 -0
  379. maref-0.30.0/src/maref/gaas/audit_service.py +141 -0
  380. maref-0.30.0/src/maref/gaas/billing.py +120 -0
  381. maref-0.30.0/src/maref/gaas/cb_pool.py +137 -0
  382. maref-0.30.0/src/maref/gaas/governance_router.py +195 -0
  383. maref-0.30.0/src/maref/gaas/hitl_service.py +173 -0
  384. maref-0.30.0/src/maref/gaas/models.py +125 -0
  385. maref-0.30.0/src/maref/gaas/tenant.py +80 -0
  386. maref-0.30.0/src/maref/gaas/trust_service.py +70 -0
  387. maref-0.30.0/src/maref/governance/__init__.py +43 -0
  388. maref-0.30.0/src/maref/governance/audit.py +388 -0
  389. maref-0.30.0/src/maref/governance/circuit_breaker.py +149 -0
  390. maref-0.30.0/src/maref/governance/constants.py +77 -0
  391. maref-0.30.0/src/maref/governance/db.py +199 -0
  392. maref-0.30.0/src/maref/governance/oscillation.py +191 -0
  393. maref-0.30.0/src/maref/governance/percv_hooks.py +149 -0
  394. maref-0.30.0/src/maref/governance/state_machine.py +240 -0
  395. maref-0.30.0/src/maref/governance/threat_bridge.py +136 -0
  396. maref-0.30.0/src/maref/governance/trust_bridge.py +185 -0
  397. maref-0.30.0/src/maref/governance/types.py +77 -0
  398. maref-0.30.0/src/maref/human/__init__.py +44 -0
  399. maref-0.30.0/src/maref/human/decision_api.py +280 -0
  400. maref-0.30.0/src/maref/human/interrupt_protocol.py +164 -0
  401. maref-0.30.0/src/maref/human/rule_engine.py +244 -0
  402. maref-0.30.0/src/maref/identity/__init__.py +13 -0
  403. maref-0.30.0/src/maref/identity/credential.py +121 -0
  404. maref-0.30.0/src/maref/identity/did_registry.py +70 -0
  405. maref-0.30.0/src/maref/identity/trust_engine.py +131 -0
  406. maref-0.30.0/src/maref/inference/__init__.py +19 -0
  407. maref-0.30.0/src/maref/inference/memory_trust.py +148 -0
  408. maref-0.30.0/src/maref/integration/__init__.py +254 -0
  409. maref-0.30.0/src/maref/integration/a2a_bridge.py +257 -0
  410. maref-0.30.0/src/maref/integration/a2a_secure_transport.py +212 -0
  411. maref-0.30.0/src/maref/integration/a2a_types.py +142 -0
  412. maref-0.30.0/src/maref/integration/deerflow_bridge.py +209 -0
  413. maref-0.30.0/src/maref/integration/feature_dev/__init__.py +35 -0
  414. maref-0.30.0/src/maref/integration/feature_dev/content_producer.py +305 -0
  415. maref-0.30.0/src/maref/integration/feature_dev/content_scorer.py +179 -0
  416. maref-0.30.0/src/maref/integration/feature_dev/doc_ingestor.py +463 -0
  417. maref-0.30.0/src/maref/integration/feature_dev/feature_cycle.py +314 -0
  418. maref-0.30.0/src/maref/integration/feature_dev/llm_client.py +142 -0
  419. maref-0.30.0/src/maref/integration/feature_dev/progress_tracker.py +165 -0
  420. maref-0.30.0/src/maref/integration/feature_dev/task_generator.py +167 -0
  421. maref-0.30.0/src/maref/integration/feature_dev/verification_engine.py +291 -0
  422. maref-0.30.0/src/maref/integration/flag_bridge.py +228 -0
  423. maref-0.30.0/src/maref/integration/gateway.py +241 -0
  424. maref-0.30.0/src/maref/integration/hitl.py +182 -0
  425. maref-0.30.0/src/maref/integration/hitl_api.py +253 -0
  426. maref-0.30.0/src/maref/integration/mcp_bridge.py +142 -0
  427. maref-0.30.0/src/maref/integration/mcp_client.py +230 -0
  428. maref-0.30.0/src/maref/integration/mcp_governance.py +833 -0
  429. maref-0.30.0/src/maref/integration/mcp_security.py +321 -0
  430. maref-0.30.0/src/maref/integration/mcp_security_middleware.py +212 -0
  431. maref-0.30.0/src/maref/integration/mcp_server.py +242 -0
  432. maref-0.30.0/src/maref/integration/mcp_transport.py +283 -0
  433. maref-0.30.0/src/maref/integration/memory_bridge.py +253 -0
  434. maref-0.30.0/src/maref/integration/percv/__init__.py +45 -0
  435. maref-0.30.0/src/maref/integration/percv/card_bridge.py +202 -0
  436. maref-0.30.0/src/maref/integration/percv/config.py +76 -0
  437. maref-0.30.0/src/maref/integration/percv/cost_monitor.py +122 -0
  438. maref-0.30.0/src/maref/integration/percv/feedback_loop.py +194 -0
  439. maref-0.30.0/src/maref/integration/percv/gateway_adapter.py +391 -0
  440. maref-0.30.0/src/maref/integration/percv/orchestrator.py +349 -0
  441. maref-0.30.0/src/maref/integration/percv/pipeline_adapter.py +235 -0
  442. maref-0.30.0/src/maref/integration/percv/ratchet_bridge.py +227 -0
  443. maref-0.30.0/src/maref/integration/percv/verification_bridge.py +336 -0
  444. maref-0.30.0/src/maref/integration/protocol_bridge.py +127 -0
  445. maref-0.30.0/src/maref/integration/remote_bridge.py +187 -0
  446. maref-0.30.0/src/maref/integration/symphony.py +239 -0
  447. maref-0.30.0/src/maref/integration/test_platform/__init__.py +97 -0
  448. maref-0.30.0/src/maref/integration/test_platform/card_adapter.py +243 -0
  449. maref-0.30.0/src/maref/integration/test_platform/eval_observer.py +241 -0
  450. maref-0.30.0/src/maref/integration/test_platform/quality_gate.py +265 -0
  451. maref-0.30.0/src/maref/integration/test_platform/schema.py +219 -0
  452. maref-0.30.0/src/maref/integration/test_platform/score_mapper.py +213 -0
  453. maref-0.30.0/src/maref/integration/test_platform/state_trigger.py +311 -0
  454. maref-0.30.0/src/maref/integration/test_platform/tla_verifier.py +254 -0
  455. maref-0.30.0/src/maref/knowledge/__init__.py +24 -0
  456. maref-0.30.0/src/maref/knowledge/graph.py +478 -0
  457. maref-0.30.0/src/maref/knowledge/hypothesis_cycle.py +148 -0
  458. maref-0.30.0/src/maref/knowledge/relations.py +224 -0
  459. maref-0.30.0/src/maref/learning/__init__.py +24 -0
  460. maref-0.30.0/src/maref/learning/ab_test.py +208 -0
  461. maref-0.30.0/src/maref/learning/replay.py +300 -0
  462. maref-0.30.0/src/maref/learning/scheduler.py +133 -0
  463. maref-0.30.0/src/maref/life_state/__init__.py +18 -0
  464. maref-0.30.0/src/maref/life_state/federation.py +150 -0
  465. maref-0.30.0/src/maref/life_state/health.py +187 -0
  466. maref-0.30.0/src/maref/life_state/lifecycle.py +155 -0
  467. maref-0.30.0/src/maref/life_state/messaging.py +147 -0
  468. maref-0.30.0/src/maref/life_state/metadata.py +124 -0
  469. maref-0.30.0/src/maref/life_state/registry.py +148 -0
  470. maref-0.30.0/src/maref/life_state/resources.py +129 -0
  471. maref-0.30.0/src/maref/life_state/sandbox.py +149 -0
  472. maref-0.30.0/src/maref/life_state/state_machine.py +151 -0
  473. maref-0.30.0/src/maref/marketplace/__init__.py +40 -0
  474. maref-0.30.0/src/maref/marketplace/registry.py +250 -0
  475. maref-0.30.0/src/maref/marketplace/reputation.py +146 -0
  476. maref-0.30.0/src/maref/marketplace/semantic_matcher.py +97 -0
  477. maref-0.30.0/src/maref/marketplace/version_negotiator.py +142 -0
  478. maref-0.30.0/src/maref/memory/__init__.py +37 -0
  479. maref-0.30.0/src/maref/memory/memory_manager.py +457 -0
  480. maref-0.30.0/src/maref/monitoring/__init__.py +49 -0
  481. maref-0.30.0/src/maref/monitoring/safety_dashboard.py +122 -0
  482. maref-0.30.0/src/maref/monitoring/security_orchestrator.py +590 -0
  483. maref-0.30.0/src/maref/monitoring/threat_intelligence.py +490 -0
  484. maref-0.30.0/src/maref/obs/__init__.py +34 -0
  485. maref-0.30.0/src/maref/obs/aggregator.py +119 -0
  486. maref-0.30.0/src/maref/obs/client.py +242 -0
  487. maref-0.30.0/src/maref/obs/hasher.py +36 -0
  488. maref-0.30.0/src/maref/obs/levels.py +42 -0
  489. maref-0.30.0/src/maref/obs/oscillator_params.py +122 -0
  490. maref-0.30.0/src/maref/obs/pipeline.py +198 -0
  491. maref-0.30.0/src/maref/obs/py.typed +0 -0
  492. maref-0.30.0/src/maref/obs/schema.py +44 -0
  493. maref-0.30.0/src/maref/observability/__init__.py +48 -0
  494. maref-0.30.0/src/maref/observability/error_budget.py +164 -0
  495. maref-0.30.0/src/maref/observability/logging.py +115 -0
  496. maref-0.30.0/src/maref/observability/otel_middleware.py +222 -0
  497. maref-0.30.0/src/maref/observability/red_metrics.py +200 -0
  498. maref-0.30.0/src/maref/observability/trace_context.py +93 -0
  499. maref-0.30.0/src/maref/observation/__init__.py +31 -0
  500. maref-0.30.0/src/maref/observation/detector.py +175 -0
  501. maref-0.30.0/src/maref/observation/otel_bridge.py +356 -0
  502. maref-0.30.0/src/maref/observation/probes.py +212 -0
  503. maref-0.30.0/src/maref/observation/registry.py +70 -0
  504. maref-0.30.0/src/maref/observation/store.py +183 -0
  505. maref-0.30.0/src/maref/orchestration/__init__.py +33 -0
  506. maref-0.30.0/src/maref/orchestration/decomposer.py +102 -0
  507. maref-0.30.0/src/maref/orchestration/dispatcher.py +175 -0
  508. maref-0.30.0/src/maref/orchestration/joint_machine.py +126 -0
  509. maref-0.30.0/src/maref/orchestration/operational_validator.py +237 -0
  510. maref-0.30.0/src/maref/orchestration/plan_executor.py +368 -0
  511. maref-0.30.0/src/maref/orchestration/task_graph.py +292 -0
  512. maref-0.30.0/src/maref/performance.py +568 -0
  513. maref-0.30.0/src/maref/production/__init__.py +19 -0
  514. maref-0.30.0/src/maref/production/_constants.py +7 -0
  515. maref-0.30.0/src/maref/production/asset_scaffolder.py +95 -0
  516. maref-0.30.0/src/maref/production/character_factory.py +166 -0
  517. maref-0.30.0/src/maref/production/content_assembler.py +85 -0
  518. maref-0.30.0/src/maref/production/content_engine.py +97 -0
  519. maref-0.30.0/src/maref/production/hypothesis_validator.py +106 -0
  520. maref-0.30.0/src/maref/production/ip_cli.py +210 -0
  521. maref-0.30.0/src/maref/production/script_writer.py +219 -0
  522. maref-0.30.0/src/maref/production/templates/character_profile.md +38 -0
  523. maref-0.30.0/src/maref/production/templates/episode_script.md +44 -0
  524. maref-0.30.0/src/maref/protocols/__init__.py +33 -0
  525. maref-0.30.0/src/maref/protocols/protocol_bridge.py +491 -0
  526. maref-0.30.0/src/maref/py.typed +0 -0
  527. maref-0.30.0/src/maref/recursive/__init__.py +716 -0
  528. maref-0.30.0/src/maref/recursive/admission_testing.py +288 -0
  529. maref-0.30.0/src/maref/recursive/agent_24_state_machine.py +299 -0
  530. maref-0.30.0/src/maref/recursive/agent_credit_rating.py +334 -0
  531. maref-0.30.0/src/maref/recursive/agent_discovery_negotiation.py +238 -0
  532. maref-0.30.0/src/maref/recursive/agent_dispatcher.py +100 -0
  533. maref-0.30.0/src/maref/recursive/agent_economy.py +407 -0
  534. maref-0.30.0/src/maref/recursive/agent_handoff.py +329 -0
  535. maref-0.30.0/src/maref/recursive/agent_health.py +133 -0
  536. maref-0.30.0/src/maref/recursive/agent_marketplace.py +278 -0
  537. maref-0.30.0/src/maref/recursive/audit_schema.py +188 -0
  538. maref-0.30.0/src/maref/recursive/blast_radius.py +136 -0
  539. maref-0.30.0/src/maref/recursive/builtin_skills/code_security_audit.yaml +49 -0
  540. maref-0.30.0/src/maref/recursive/capability_contracts.py +667 -0
  541. maref-0.30.0/src/maref/recursive/carbon_silicon_symbiosis.py +363 -0
  542. maref-0.30.0/src/maref/recursive/chaos_injector.py +45 -0
  543. maref-0.30.0/src/maref/recursive/chaos_resilience.py +91 -0
  544. maref-0.30.0/src/maref/recursive/code_parser.py +80 -0
  545. maref-0.30.0/src/maref/recursive/complexity_budget.py +282 -0
  546. maref-0.30.0/src/maref/recursive/continuous_optimizer.py +327 -0
  547. maref-0.30.0/src/maref/recursive/convergence_dashboard.py +259 -0
  548. maref-0.30.0/src/maref/recursive/correlation_engine.py +362 -0
  549. maref-0.30.0/src/maref/recursive/cost_tracker.py +359 -0
  550. maref-0.30.0/src/maref/recursive/coverage_tracker.py +97 -0
  551. maref-0.30.0/src/maref/recursive/creative_generator.py +263 -0
  552. maref-0.30.0/src/maref/recursive/cross_system_adapter.py +308 -0
  553. maref-0.30.0/src/maref/recursive/dashboard_v3.py +142 -0
  554. maref-0.30.0/src/maref/recursive/decision_market.py +578 -0
  555. maref-0.30.0/src/maref/recursive/distributed_bft.py +368 -0
  556. maref-0.30.0/src/maref/recursive/distributed_crdt.py +244 -0
  557. maref-0.30.0/src/maref/recursive/eight_trigrams_governance.py +307 -0
  558. maref-0.30.0/src/maref/recursive/evolution_dsl.py +266 -0
  559. maref-0.30.0/src/maref/recursive/experience_pool.py +175 -0
  560. maref-0.30.0/src/maref/recursive/federation.py +117 -0
  561. maref-0.30.0/src/maref/recursive/formal_planner.py +418 -0
  562. maref-0.30.0/src/maref/recursive/four_phase_governance.py +383 -0
  563. maref-0.30.0/src/maref/recursive/hitl_v2.py +275 -0
  564. maref-0.30.0/src/maref/recursive/hook_chain.py +103 -0
  565. maref-0.30.0/src/maref/recursive/hook_registry.py +75 -0
  566. maref-0.30.0/src/maref/recursive/hook_templates.py +156 -0
  567. maref-0.30.0/src/maref/recursive/hook_topics.py +33 -0
  568. maref-0.30.0/src/maref/recursive/hybrid_decomposer.py +254 -0
  569. maref-0.30.0/src/maref/recursive/instance_cloner.py +362 -0
  570. maref-0.30.0/src/maref/recursive/integrity_baseline.py +122 -0
  571. maref-0.30.0/src/maref/recursive/internal_agents.py +117 -0
  572. maref-0.30.0/src/maref/recursive/joint_state_machine.py +124 -0
  573. maref-0.30.0/src/maref/recursive/live_migration.py +237 -0
  574. maref-0.30.0/src/maref/recursive/memory_three_temperature.py +374 -0
  575. maref-0.30.0/src/maref/recursive/meta_agent_closure.py +325 -0
  576. maref-0.30.0/src/maref/recursive/meta_governance.py +195 -0
  577. maref-0.30.0/src/maref/recursive/metacognition.py +186 -0
  578. maref-0.30.0/src/maref/recursive/observability.py +230 -0
  579. maref-0.30.0/src/maref/recursive/ontology_drift.py +328 -0
  580. maref-0.30.0/src/maref/recursive/orchestration_perf.py +194 -0
  581. maref-0.30.0/src/maref/recursive/otel_dashboard.py +45 -0
  582. maref-0.30.0/src/maref/recursive/permission_matrix.py +103 -0
  583. maref-0.30.0/src/maref/recursive/reliability_matrix.py +178 -0
  584. maref-0.30.0/src/maref/recursive/resilience_v2.py +219 -0
  585. maref-0.30.0/src/maref/recursive/role_composer.py +121 -0
  586. maref-0.30.0/src/maref/recursive/role_lifecycle.py +138 -0
  587. maref-0.30.0/src/maref/recursive/role_registry.py +138 -0
  588. maref-0.30.0/src/maref/recursive/rule_freeze_zone.py +232 -0
  589. maref-0.30.0/src/maref/recursive/runtime_kg.py +153 -0
  590. maref-0.30.0/src/maref/recursive/safety_gate_v2.py +302 -0
  591. maref-0.30.0/src/maref/recursive/saga_orchestrator.py +409 -0
  592. maref-0.30.0/src/maref/recursive/schema_aligner.py +261 -0
  593. maref-0.30.0/src/maref/recursive/self_architect.py +339 -0
  594. maref-0.30.0/src/maref/recursive/self_diagnostician.py +153 -0
  595. maref-0.30.0/src/maref/recursive/self_executor.py +714 -0
  596. maref-0.30.0/src/maref/recursive/self_healer.py +289 -0
  597. maref-0.30.0/src/maref/recursive/self_knowledge.py +173 -0
  598. maref-0.30.0/src/maref/recursive/self_observer.py +153 -0
  599. maref-0.30.0/src/maref/recursive/self_optimizer.py +196 -0
  600. maref-0.30.0/src/maref/recursive/self_orchestrator.py +179 -0
  601. maref-0.30.0/src/maref/recursive/self_version.py +182 -0
  602. maref-0.30.0/src/maref/recursive/signed_agent_cards.py +194 -0
  603. maref-0.30.0/src/maref/recursive/skill_executor.py +161 -0
  604. maref-0.30.0/src/maref/recursive/skill_loader.py +120 -0
  605. maref-0.30.0/src/maref/recursive/skill_schema.py +299 -0
  606. maref-0.30.0/src/maref/recursive/skill_trigger.py +59 -0
  607. maref-0.30.0/src/maref/recursive/stigmergy_swarm.py +262 -0
  608. maref-0.30.0/src/maref/recursive/task_decomposer.py +126 -0
  609. maref-0.30.0/src/maref/recursive/time_awareness.py +178 -0
  610. maref-0.30.0/src/maref/recursive/tla_replay.py +261 -0
  611. maref-0.30.0/src/maref/recursive/trust_engine_v2.py +415 -0
  612. maref-0.30.0/src/maref/recursive/trust_v2.py +154 -0
  613. maref-0.30.0/src/maref/recursive/unified_audit.py +131 -0
  614. maref-0.30.0/src/maref/recursive/zero_trust.py +262 -0
  615. maref-0.30.0/src/maref/redblue/__init__.py +20 -0
  616. maref-0.30.0/src/maref/redblue/attack_executor.py +137 -0
  617. maref-0.30.0/src/maref/redblue/attack_vector.py +225 -0
  618. maref-0.30.0/src/maref/redblue/red_blue_engine.py +262 -0
  619. maref-0.30.0/src/maref/security/__init__.py +10 -0
  620. maref-0.30.0/src/maref/security/agent_identity/__init__.py +349 -0
  621. maref-0.30.0/src/maref/security/behavior_monitor.py +215 -0
  622. maref-0.30.0/src/maref/security/byzantine_enhancer.py +174 -0
  623. maref-0.30.0/src/maref/security/decorators.py +51 -0
  624. maref-0.30.0/src/maref/security/keyring_store.py +117 -0
  625. maref-0.30.0/src/maref/security/message_security.py +131 -0
  626. maref-0.30.0/src/maref/security/sanitizer.py +129 -0
  627. maref-0.30.0/src/maref/security/security_proofs.py +459 -0
  628. maref-0.30.0/src/maref/security/state_monitor.py +157 -0
  629. maref-0.30.0/src/maref/security/trust_api.py +89 -0
  630. maref-0.30.0/src/maref/security/trust_boundary/__init__.py +240 -0
  631. maref-0.30.0/src/maref/security/trust_chain/__init__.py +183 -0
  632. maref-0.30.0/src/maref/security/trust_graph.py +191 -0
  633. maref-0.30.0/src/maref/security/trust_integration/__init__.py +392 -0
  634. maref-0.30.0/src/maref/security/trust_visualization.py +96 -0
  635. maref-0.30.0/src/maref/security/weighted_consensus.py +93 -0
  636. maref-0.30.0/src/maref/serverless_handler.py +60 -0
  637. maref-0.30.0/src/maref/stress/__init__.py +16 -0
  638. maref-0.30.0/src/maref/stress/chaos_engine.py +398 -0
  639. maref-0.30.0/src/maref/stress/distributed_harness.py +86 -0
  640. maref-0.30.0/src/maref/stress/emergence_harness.py +156 -0
  641. maref-0.30.0/src/maref/stress/real_faults.py +186 -0
  642. maref-0.30.0/src/maref/stress/real_latency.py +92 -0
  643. maref-0.30.0/src/maref/stress/resilience_tracker.py +80 -0
  644. maref-0.30.0/src/maref/stress/stability_test.py +233 -0
  645. maref-0.30.0/src/maref/stress/stress_harness.py +188 -0
  646. maref-0.30.0/src/maref/stress/stress_level.py +84 -0
  647. maref-0.30.0/src/maref/stress/stress_result.py +63 -0
  648. maref-0.30.0/src/maref/supply_chain/__init__.py +42 -0
  649. maref-0.30.0/src/maref/supply_chain/sbom_generator.py +1037 -0
  650. maref-0.30.0/src/maref/supply_chain/vulnerability_scanner.py +1073 -0
  651. maref-0.30.0/src/maref/testing/__init__.py +5 -0
  652. maref-0.30.0/src/maref/testing/mock_validator.py +43 -0
  653. maref-0.30.0/src/maref/tools/__init__.py +67 -0
  654. maref-0.30.0/src/maref/tools/browser_server.py +225 -0
  655. maref-0.30.0/src/maref/tools/email_server.py +318 -0
  656. maref-0.30.0/src/maref/tools/file_server.py +289 -0
  657. maref-0.30.0/src/maref/tools/git_server.py +281 -0
  658. maref-0.30.0/src/maref/tools/registry.py +154 -0
  659. maref-0.30.0/src/maref/tools/shell_server.py +186 -0
  660. maref-0.30.0/src/maref/tools/tool_schema.py +217 -0
  661. maref-0.30.0/src/maref/tools/web_search_server.py +265 -0
  662. maref-0.30.0/src/maref_lite/README.md +51 -0
  663. maref-0.30.0/src/maref_lite/__init__.py +1 -0
  664. maref-0.30.0/src/maref_lite/_constants.py +26 -0
  665. maref-0.30.0/src/maref_lite/cli.py +672 -0
  666. maref-0.30.0/src/maref_lite/governance.py +401 -0
  667. maref-0.30.0/src/maref_lite/keys_cli.py +130 -0
  668. maref-0.30.0/src/maref_lite/meta_learning.py +284 -0
  669. maref-0.30.0/src/maref_lite/obs_cli.py +129 -0
  670. maref-0.30.0/src/maref_lite/percv_cli.py +491 -0
  671. maref-0.30.0/src/maref_lite/policy.py +162 -0
  672. maref-0.30.0/src/maref_lite/py.typed +0 -0
  673. maref-0.30.0/src/maref_lite/recursive_governance.py +391 -0
  674. maref-0.30.0/src/maref_lite/state_machine.py +57 -0
  675. maref-0.30.0/src/research/autoresearch_loop.py +648 -0
  676. maref-0.30.0/src/research/autoresearch_phase10.py +462 -0
  677. maref-0.30.0/src/research/autoresearch_phase9.py +474 -0
  678. maref-0.30.0/src/research/chaos_engineering.py +366 -0
  679. maref-0.30.0/src/research/config.py +95 -0
  680. maref-0.30.0/src/research/continuous_engine.py +483 -0
  681. maref-0.30.0/src/research/dashscope_client.py +394 -0
  682. maref-0.30.0/src/research/discovery_engine.py +273 -0
  683. maref-0.30.0/src/research/experiment_registry.py +311 -0
  684. maref-0.30.0/src/research/fault_recovery.py +147 -0
  685. maref-0.30.0/src/research/finding_models.py +90 -0
  686. maref-0.30.0/src/research/knowledge_graph.py +10 -0
  687. maref-0.30.0/src/research/orchestrator.py +194 -0
  688. maref-0.30.0/src/research/py.typed +0 -0
  689. maref-0.30.0/src/research/vector_store.py +252 -0
  690. maref-0.30.0/telemetry-server/Dockerfile +12 -0
  691. maref-0.30.0/telemetry-server/aggregator.py +171 -0
  692. maref-0.30.0/telemetry-server/docker-compose.yml +17 -0
  693. maref-0.30.0/telemetry-server/main.py +199 -0
  694. maref-0.30.0/telemetry-server/requirements.txt +2 -0
  695. maref-0.30.0/test_integration_real.py +279 -0
  696. maref-0.30.0/test_phase1.py +77 -0
  697. maref-0.30.0/test_phase1_boundary.py +272 -0
  698. maref-0.30.0/test_phase2.py +184 -0
  699. maref-0.30.0/test_phase2_blast.py +113 -0
  700. maref-0.30.0/test_phase2_schema.py +148 -0
  701. maref-0.30.0/test_phase3_bft.py +89 -0
  702. maref-0.30.0/test_phase3_consistency.py +69 -0
  703. maref-0.30.0/test_phase3_emergence.py +87 -0
  704. maref-0.30.0/tests/__init__.py +0 -0
  705. maref-0.30.0/tests/benchmark/performance_benchmarks.py +177 -0
  706. maref-0.30.0/tests/benchmark/test_compliance_sidecar_benchmark.py +296 -0
  707. maref-0.30.0/tests/benchmark/test_hotpotqa.py +101 -0
  708. maref-0.30.0/tests/chaos/__init__.py +0 -0
  709. maref-0.30.0/tests/chaos/test_chaos_engine_scenarios.py +489 -0
  710. maref-0.30.0/tests/chaos/test_chaos_scenarios.py +373 -0
  711. maref-0.30.0/tests/chaos/test_desktop_chaos.py +457 -0
  712. maref-0.30.0/tests/chaos/test_disaster_recovery.py +395 -0
  713. maref-0.30.0/tests/chaos/test_incident_response.py +560 -0
  714. maref-0.30.0/tests/chaos/test_llm_chaos.py +315 -0
  715. maref-0.30.0/tests/chaos/test_recursive_chaos.py +64 -0
  716. maref-0.30.0/tests/cli/__init__.py +0 -0
  717. maref-0.30.0/tests/cli/test_cli_main.py +514 -0
  718. maref-0.30.0/tests/cli/test_cli_percv.py +39 -0
  719. maref-0.30.0/tests/cli/test_desktop_setup.py +62 -0
  720. maref-0.30.0/tests/cli/test_keys_cli.py +434 -0
  721. maref-0.30.0/tests/cli/test_percv_cli_unit.py +322 -0
  722. maref-0.30.0/tests/cli/test_r11_cli_entry.py +189 -0
  723. maref-0.30.0/tests/compliance/test_compliance_phase5.py +202 -0
  724. maref-0.30.0/tests/desktop/__init__.py +0 -0
  725. maref-0.30.0/tests/desktop/test_d10_integration_chaos.py +240 -0
  726. maref-0.30.0/tests/desktop/test_d1_environment.py +564 -0
  727. maref-0.30.0/tests/desktop/test_d2_modules.py +299 -0
  728. maref-0.30.0/tests/desktop/test_d3_verification_clipboard.py +298 -0
  729. maref-0.30.0/tests/desktop/test_d5_integration.py +315 -0
  730. maref-0.30.0/tests/desktop/test_d6_d9_m2_security.py +438 -0
  731. maref-0.30.0/tests/desktop/test_e1_e7_modules.py +686 -0
  732. maref-0.30.0/tests/desktop/test_e2e_desktop_loop.py +371 -0
  733. maref-0.30.0/tests/desktop/test_e2e_real.py +372 -0
  734. maref-0.30.0/tests/desktop/test_governance_dashboard.py +129 -0
  735. maref-0.30.0/tests/desktop/test_input_safety.py +200 -0
  736. maref-0.30.0/tests/desktop/test_mobile_bridge_real.py +454 -0
  737. maref-0.30.0/tests/desktop/test_operation_history.py +147 -0
  738. maref-0.30.0/tests/desktop/test_policy_decision_tree.py +171 -0
  739. maref-0.30.0/tests/desktop/test_r103_r105_diag_tasks_parser.py +151 -0
  740. maref-0.30.0/tests/desktop/test_r106_r110_opencua_workflows_chaos.py +206 -0
  741. maref-0.30.0/tests/desktop/test_real_integration.py +416 -0
  742. maref-0.30.0/tests/desktop/test_screen_parser_real.py +76 -0
  743. maref-0.30.0/tests/e2e/test_web_research.py +170 -0
  744. maref-0.30.0/tests/evolution/__init__.py +0 -0
  745. maref-0.30.0/tests/evolution/test_c3_convergence.py +875 -0
  746. maref-0.30.0/tests/evolution/test_cycle_acceptance.py +221 -0
  747. maref-0.30.0/tests/evolution/test_engine.py +293 -0
  748. maref-0.30.0/tests/evolution/test_engine_quality_gate_integration.py +51 -0
  749. maref-0.30.0/tests/evolution/test_r21_main.py +205 -0
  750. maref-0.30.0/tests/evolution/test_r24_engine_coverage.py +283 -0
  751. maref-0.30.0/tests/executor/test_api.py +320 -0
  752. maref-0.30.0/tests/executor/test_checkpointer.py +454 -0
  753. maref-0.30.0/tests/executor/test_notifications.py +219 -0
  754. maref-0.30.0/tests/executor/test_queue.py +373 -0
  755. maref-0.30.0/tests/executor/test_scheduler.py +573 -0
  756. maref-0.30.0/tests/executor/test_session.py +463 -0
  757. maref-0.30.0/tests/executor/test_types.py +132 -0
  758. maref-0.30.0/tests/executor/test_worker.py +583 -0
  759. maref-0.30.0/tests/feature_dev/__init__.py +0 -0
  760. maref-0.30.0/tests/feature_dev/conftest.py +166 -0
  761. maref-0.30.0/tests/feature_dev/test_content_producer.py +129 -0
  762. maref-0.30.0/tests/feature_dev/test_content_scorer.py +152 -0
  763. maref-0.30.0/tests/feature_dev/test_doc_ingestor.py +311 -0
  764. maref-0.30.0/tests/feature_dev/test_feature_cycle.py +229 -0
  765. maref-0.30.0/tests/feature_dev/test_llm_client.py +181 -0
  766. maref-0.30.0/tests/feature_dev/test_progress_tracker.py +164 -0
  767. maref-0.30.0/tests/feature_dev/test_task_generator.py +84 -0
  768. maref-0.30.0/tests/feature_dev/test_verification_engine.py +227 -0
  769. maref-0.30.0/tests/features/__init__.py +0 -0
  770. maref-0.30.0/tests/features/test_feature_flags.py +200 -0
  771. maref-0.30.0/tests/formal/__init__.py +0 -0
  772. maref-0.30.0/tests/formal/conftest.py +203 -0
  773. maref-0.30.0/tests/formal/test_validator.py +160 -0
  774. maref-0.30.0/tests/governance/test_audit_logger.py +216 -0
  775. maref-0.30.0/tests/governance/test_circuit_breaker.py +116 -0
  776. maref-0.30.0/tests/governance/test_constants.py +93 -0
  777. maref-0.30.0/tests/governance/test_db.py +156 -0
  778. maref-0.30.0/tests/governance/test_percv_hooks.py +82 -0
  779. maref-0.30.0/tests/governance/test_r21_oscillation.py +204 -0
  780. maref-0.30.0/tests/governance/test_r27_state_machine.py +120 -0
  781. maref-0.30.0/tests/governance/test_state_machine.py +147 -0
  782. maref-0.30.0/tests/governance/test_threat_bridge.py +177 -0
  783. maref-0.30.0/tests/governance/test_trust_bridge.py +153 -0
  784. maref-0.30.0/tests/human/__init__.py +0 -0
  785. maref-0.30.0/tests/human/test_decision_api.py +147 -0
  786. maref-0.30.0/tests/human/test_interrupt_protocol.py +106 -0
  787. maref-0.30.0/tests/human/test_rule_engine.py +147 -0
  788. maref-0.30.0/tests/integration/__init__.py +0 -0
  789. maref-0.30.0/tests/integration/percv/__init__.py +0 -0
  790. maref-0.30.0/tests/integration/percv/test_card_bridge.py +119 -0
  791. maref-0.30.0/tests/integration/percv/test_cost_monitor.py +122 -0
  792. maref-0.30.0/tests/integration/percv/test_e2e_closed_loop.py +154 -0
  793. maref-0.30.0/tests/integration/percv/test_feedback_loop.py +140 -0
  794. maref-0.30.0/tests/integration/percv/test_gateway_adapter.py +182 -0
  795. maref-0.30.0/tests/integration/percv/test_orchestrator.py +130 -0
  796. maref-0.30.0/tests/integration/percv/test_pipeline_adapter.py +134 -0
  797. maref-0.30.0/tests/integration/percv/test_ratchet_bridge.py +97 -0
  798. maref-0.30.0/tests/integration/percv/test_verification_bridge.py +183 -0
  799. maref-0.30.0/tests/integration/test_a2a_integration.py +175 -0
  800. maref-0.30.0/tests/integration/test_a2a_secure_transport.py +189 -0
  801. maref-0.30.0/tests/integration/test_cross_framework.py +88 -0
  802. maref-0.30.0/tests/integration/test_ecosystem_closed_loop.py +166 -0
  803. maref-0.30.0/tests/integration/test_ecosystem_interop.py +225 -0
  804. maref-0.30.0/tests/integration/test_governance_flow.py +341 -0
  805. maref-0.30.0/tests/integration/test_hitl_api.py +216 -0
  806. maref-0.30.0/tests/integration/test_mcp_governance.py +1278 -0
  807. maref-0.30.0/tests/integration/test_mcp_security_middleware.py +261 -0
  808. maref-0.30.0/tests/integration/test_mcp_server.py +225 -0
  809. maref-0.30.0/tests/integration/test_orchestration_e2e.py +287 -0
  810. maref-0.30.0/tests/integration/test_orchestration_hitl_integration.py +211 -0
  811. maref-0.30.0/tests/integration/test_phase6_integration.py +276 -0
  812. maref-0.30.0/tests/integration/test_platform/test_integration.py +526 -0
  813. maref-0.30.0/tests/integration/test_protocol_bridge.py +153 -0
  814. maref-0.30.0/tests/knowledge/test_r21_relations.py +238 -0
  815. maref-0.30.0/tests/knowledge/test_r25_graph_coverage.py +279 -0
  816. maref-0.30.0/tests/life_state/__init__.py +0 -0
  817. maref-0.30.0/tests/life_state/test_federation.py +111 -0
  818. maref-0.30.0/tests/life_state/test_health.py +173 -0
  819. maref-0.30.0/tests/life_state/test_integration.py +193 -0
  820. maref-0.30.0/tests/life_state/test_lifecycle.py +119 -0
  821. maref-0.30.0/tests/life_state/test_messaging.py +154 -0
  822. maref-0.30.0/tests/life_state/test_metadata.py +156 -0
  823. maref-0.30.0/tests/life_state/test_registry.py +153 -0
  824. maref-0.30.0/tests/life_state/test_resources.py +130 -0
  825. maref-0.30.0/tests/life_state/test_sandbox.py +109 -0
  826. maref-0.30.0/tests/life_state/test_state_machine.py +152 -0
  827. maref-0.30.0/tests/maref/obs/__init__.py +0 -0
  828. maref-0.30.0/tests/maref/obs/test_aggregator.py +70 -0
  829. maref-0.30.0/tests/maref/obs/test_bridge.py +79 -0
  830. maref-0.30.0/tests/maref/obs/test_client.py +169 -0
  831. maref-0.30.0/tests/maref/obs/test_hasher.py +42 -0
  832. maref-0.30.0/tests/maref/obs/test_integration.py +172 -0
  833. maref-0.30.0/tests/maref/obs/test_levels.py +52 -0
  834. maref-0.30.0/tests/maref/obs/test_oscillator_params.py +90 -0
  835. maref-0.30.0/tests/maref/obs/test_pipeline.py +131 -0
  836. maref-0.30.0/tests/maref/obs/test_server_aggregator.py +169 -0
  837. maref-0.30.0/tests/marketplace/test_marketplace.py +227 -0
  838. maref-0.30.0/tests/memory/test_memory_manager.py +230 -0
  839. maref-0.30.0/tests/monitoring/test_safety_dashboard.py +114 -0
  840. maref-0.30.0/tests/observability/test_error_budget.py +261 -0
  841. maref-0.30.0/tests/observability/test_phase_observability.py +145 -0
  842. maref-0.30.0/tests/observation/test_r26_registry.py +148 -0
  843. maref-0.30.0/tests/recursive/__init__.py +0 -0
  844. maref-0.30.0/tests/recursive/test_r10_evolution.py +204 -0
  845. maref-0.30.0/tests/recursive/test_r11_governance_coverage.py +327 -0
  846. maref-0.30.0/tests/recursive/test_r12_audit.py +423 -0
  847. maref-0.30.0/tests/recursive/test_r13_observability.py +327 -0
  848. maref-0.30.0/tests/recursive/test_r14_r17.py +314 -0
  849. maref-0.30.0/tests/recursive/test_r18_r20.py +329 -0
  850. maref-0.30.0/tests/recursive/test_r1_self_observer.py +85 -0
  851. maref-0.30.0/tests/recursive/test_r22_experience_decay.py +147 -0
  852. maref-0.30.0/tests/recursive/test_r22_sampling.py +150 -0
  853. maref-0.30.0/tests/recursive/test_r28_audit_coverage.py +148 -0
  854. maref-0.30.0/tests/recursive/test_r29_edge_cases.py +107 -0
  855. maref-0.30.0/tests/recursive/test_r2_diagnosis.py +129 -0
  856. maref-0.30.0/tests/recursive/test_r31_self_executor.py +635 -0
  857. maref-0.30.0/tests/recursive/test_r32_correlation_engine.py +235 -0
  858. maref-0.30.0/tests/recursive/test_r33_complexity_budget.py +173 -0
  859. maref-0.30.0/tests/recursive/test_r34_continuous_optimizer.py +287 -0
  860. maref-0.30.0/tests/recursive/test_r35_live_migration.py +181 -0
  861. maref-0.30.0/tests/recursive/test_r36_signed_agent_cards.py +194 -0
  862. maref-0.30.0/tests/recursive/test_r3_healing.py +192 -0
  863. maref-0.30.0/tests/recursive/test_r40_full_pipeline.py +135 -0
  864. maref-0.30.0/tests/recursive/test_r41_hybrid_decomposer.py +450 -0
  865. maref-0.30.0/tests/recursive/test_r41_memory_three_temp.py +225 -0
  866. maref-0.30.0/tests/recursive/test_r42_hybrid_integration.py +188 -0
  867. maref-0.30.0/tests/recursive/test_r42_trust_engine_v2.py +184 -0
  868. maref-0.30.0/tests/recursive/test_r43_24_state_machine.py +97 -0
  869. maref-0.30.0/tests/recursive/test_r43_agent_handoff.py +366 -0
  870. maref-0.30.0/tests/recursive/test_r44_discovery_negotiation.py +128 -0
  871. maref-0.30.0/tests/recursive/test_r44_handoff_integration.py +240 -0
  872. maref-0.30.0/tests/recursive/test_r45_agent_economy.py +146 -0
  873. maref-0.30.0/tests/recursive/test_r45_agent_marketplace.py +259 -0
  874. maref-0.30.0/tests/recursive/test_r46_distributed_crdt.py +90 -0
  875. maref-0.30.0/tests/recursive/test_r46_safety_gate_v2_ext.py +185 -0
  876. maref-0.30.0/tests/recursive/test_r47_orchestration_perf.py +203 -0
  877. maref-0.30.0/tests/recursive/test_r47_stigmergy_swarm.py +89 -0
  878. maref-0.30.0/tests/recursive/test_r48_dashboard_v3.py +54 -0
  879. maref-0.30.0/tests/recursive/test_r4_optimization.py +189 -0
  880. maref-0.30.0/tests/recursive/test_r50_acceptance.py +181 -0
  881. maref-0.30.0/tests/recursive/test_r51_four_phase_governance.py +293 -0
  882. maref-0.30.0/tests/recursive/test_r52_agent_credit_rating.py +253 -0
  883. maref-0.30.0/tests/recursive/test_r53_instance_cloner.py +248 -0
  884. maref-0.30.0/tests/recursive/test_r54_cross_system_adapter.py +212 -0
  885. maref-0.30.0/tests/recursive/test_r55_creative_generator.py +205 -0
  886. maref-0.30.0/tests/recursive/test_r56_meta_agent_closure.py +200 -0
  887. maref-0.30.0/tests/recursive/test_r57_carbon_silicon.py +262 -0
  888. maref-0.30.0/tests/recursive/test_r58_eight_trigrams.py +206 -0
  889. maref-0.30.0/tests/recursive/test_r59_distributed_bft.py +291 -0
  890. maref-0.30.0/tests/recursive/test_r5_meta.py +156 -0
  891. maref-0.30.0/tests/recursive/test_r60_ultimate_life_validation.py +296 -0
  892. maref-0.30.0/tests/recursive/test_r61_skill_schema_loader.py +352 -0
  893. maref-0.30.0/tests/recursive/test_r62_skill_trigger_executor.py +260 -0
  894. maref-0.30.0/tests/recursive/test_r63_r64_mcp.py +440 -0
  895. maref-0.30.0/tests/recursive/test_r65_r66_hooks.py +255 -0
  896. maref-0.30.0/tests/recursive/test_r67_coverage_tracker.py +74 -0
  897. maref-0.30.0/tests/recursive/test_r67_r68_roles.py +370 -0
  898. maref-0.30.0/tests/recursive/test_r69_audit_integrity.py +362 -0
  899. maref-0.30.0/tests/recursive/test_r6_orchestration.py +263 -0
  900. maref-0.30.0/tests/recursive/test_r70_operational.py +125 -0
  901. maref-0.30.0/tests/recursive/test_r71_capability_contracts.py +497 -0
  902. maref-0.30.0/tests/recursive/test_r72_saga_orchestrator.py +389 -0
  903. maref-0.30.0/tests/recursive/test_r73_formal_planner.py +339 -0
  904. maref-0.30.0/tests/recursive/test_r74_zero_trust.py +200 -0
  905. maref-0.30.0/tests/recursive/test_r75_cost_tracker.py +170 -0
  906. maref-0.30.0/tests/recursive/test_r76_admission_testing.py +162 -0
  907. maref-0.30.0/tests/recursive/test_r77_time_awareness.py +204 -0
  908. maref-0.30.0/tests/recursive/test_r78_metacognition.py +149 -0
  909. maref-0.30.0/tests/recursive/test_r79_ontology_drift.py +149 -0
  910. maref-0.30.0/tests/recursive/test_r7_kg.py +159 -0
  911. maref-0.30.0/tests/recursive/test_r80_hitl_v2.py +150 -0
  912. maref-0.30.0/tests/redblue/__init__.py +0 -0
  913. maref-0.30.0/tests/redblue/test_rb_engine.py +218 -0
  914. maref-0.30.0/tests/research/__init__.py +0 -0
  915. maref-0.30.0/tests/research/test_vector_store.py +198 -0
  916. maref-0.30.0/tests/security/penetration_test.py +305 -0
  917. maref-0.30.0/tests/security/test_atp_adapter.py +203 -0
  918. maref-0.30.0/tests/security/test_distributed_trust.py +368 -0
  919. maref-0.30.0/tests/security/test_m2_threat_defense.py +239 -0
  920. maref-0.30.0/tests/security/test_mcp_security_enhanced.py +145 -0
  921. maref-0.30.0/tests/security/test_trust_boundary.py +164 -0
  922. maref-0.30.0/tests/security/test_trust_chain.py +159 -0
  923. maref-0.30.0/tests/security/test_trust_integration.py +447 -0
  924. maref-0.30.0/tests/stress/__init__.py +0 -0
  925. maref-0.30.0/tests/stress/test_full_pipeline.py +444 -0
  926. maref-0.30.0/tests/stress/test_s1_s60_real_stress.py +157 -0
  927. maref-0.30.0/tests/stress/test_security_audit.py +416 -0
  928. maref-0.30.0/tests/test_aia_adapter.py +101 -0
  929. maref-0.30.0/tests/test_chaos/test_chaos_engine.py +201 -0
  930. maref-0.30.0/tests/test_chaos/test_stability.py +170 -0
  931. maref-0.30.0/tests/test_compliance_phase2.py +361 -0
  932. maref-0.30.0/tests/test_cross_validator.py +304 -0
  933. maref-0.30.0/tests/test_crypto.py +87 -0
  934. maref-0.30.0/tests/test_data_sovereignty.py +335 -0
  935. maref-0.30.0/tests/test_e2e_executor.py +412 -0
  936. maref-0.30.0/tests/test_eivl_wasm.py +234 -0
  937. maref-0.30.0/tests/test_merkle_auditor.py +345 -0
  938. maref-0.30.0/tests/test_meta_learning.py +288 -0
  939. maref-0.30.0/tests/test_monitoring.py +243 -0
  940. maref-0.30.0/tests/test_phase3.py +468 -0
  941. maref-0.30.0/tests/test_policy_sandbox.py +275 -0
  942. maref-0.30.0/tests/test_protocol_bridge.py +306 -0
  943. maref-0.30.0/tests/test_sm2_keygen.py +51 -0
  944. maref-0.30.0/tests/test_sm4_gcm.py +67 -0
  945. maref-0.30.0/tests/test_supply_chain.py +769 -0
  946. maref-0.30.0/tests/testing/__init__.py +0 -0
  947. maref-0.30.0/tests/testing/test_mock_validator.py +55 -0
  948. maref-0.30.0/tests/tools/__init__.py +0 -0
  949. maref-0.30.0/tests/tools/test_browser_server.py +363 -0
  950. maref-0.30.0/tests/tools/test_email_server.py +748 -0
  951. maref-0.30.0/tests/tools/test_file_server.py +474 -0
  952. maref-0.30.0/tests/tools/test_git_server.py +424 -0
  953. maref-0.30.0/tests/tools/test_registry.py +167 -0
  954. maref-0.30.0/tests/tools/test_shell_server.py +339 -0
  955. maref-0.30.0/tests/unit/__init__.py +0 -0
  956. maref-0.30.0/tests/unit/test_a2a_bridge.py +338 -0
  957. maref-0.30.0/tests/unit/test_config.py +41 -0
  958. maref-0.30.0/tests/unit/test_cycles_2_5_platform_intelligence.py +215 -0
  959. maref-0.30.0/tests/unit/test_decision_market.py +681 -0
  960. maref-0.30.0/tests/unit/test_decomposer.py +100 -0
  961. maref-0.30.0/tests/unit/test_dispatcher.py +63 -0
  962. maref-0.30.0/tests/unit/test_drift_guard.py +333 -0
  963. maref-0.30.0/tests/unit/test_gaas.py +328 -0
  964. maref-0.30.0/tests/unit/test_gray_code_validator.py +117 -0
  965. maref-0.30.0/tests/unit/test_hypothesis_cycle.py +133 -0
  966. maref-0.30.0/tests/unit/test_identity.py +229 -0
  967. maref-0.30.0/tests/unit/test_integration_bridges.py +461 -0
  968. maref-0.30.0/tests/unit/test_joint_machine.py +83 -0
  969. maref-0.30.0/tests/unit/test_knowledge_graph.py +216 -0
  970. maref-0.30.0/tests/unit/test_maref_lite.py +240 -0
  971. maref-0.30.0/tests/unit/test_meta_learning_m5.py +597 -0
  972. maref-0.30.0/tests/unit/test_observation.py +287 -0
  973. maref-0.30.0/tests/unit/test_otel_bridge.py +142 -0
  974. maref-0.30.0/tests/unit/test_plan_executor.py +245 -0
  975. maref-0.30.0/tests/unit/test_production.py +383 -0
  976. maref-0.30.0/tests/unit/test_r38_sidecar_jsonrpc.py +265 -0
  977. maref-0.30.0/tests/unit/test_rule_freeze_zone.py +292 -0
  978. maref-0.30.0/tests/unit/test_sidecar.py +260 -0
  979. maref-0.30.0/tests/unit/test_sidecar_mcp_bridge.py +254 -0
  980. maref-0.30.0/tests/unit/test_sidecar_server.py +103 -0
  981. maref-0.30.0/tests/unit/test_sidecar_server_extended.py +354 -0
  982. maref-0.30.0/tests/unit/test_task_graph.py +168 -0
  983. maref-0.30.0/tests/unit/test_tool_schema.py +182 -0
  984. maref-0.30.0/tests/unit/test_trust_engine.py +182 -0
  985. maref-0.30.0/uv.lock +4458 -0
  986. maref-0.30.0/vault/forecasts/F-20260511-001.yaml +84 -0
  987. maref-0.30.0/vault/kdps/K-20260511-001.yaml +50 -0
  988. maref-0.30.0/vault/kdps/K-20260511-002.yaml +55 -0
  989. maref-0.30.0/vault/kdps/K-20260511-003.yaml +53 -0
  990. maref-0.30.0/vault/kdps/K-20260511-004.yaml +49 -0
  991. maref-0.30.0/vault/kdps/K-20260511-005.yaml +47 -0
  992. maref-0.30.0/vault/kdps/K-20260511-006.yaml +58 -0
  993. maref-0.30.0/vault/kdps/K-20260511-007.yaml +62 -0
  994. maref-0.30.0/vault/kdps/K-20260511-008.yaml +56 -0
  995. maref-0.30.0/vault/kdps/K-20260511-009.yaml +53 -0
  996. maref-0.30.0/vault/kdps/K-20260518-001.yaml +74 -0
  997. maref-0.30.0/vault/kdps/K-20260518-002.yaml +79 -0
  998. maref-0.30.0/vault/kdps/K-20260518-003.yaml +119 -0
  999. maref-0.30.0/vault/kdps/K-20260518-004.yaml +162 -0
  1000. maref-0.30.0/vault/patterns/PAT-MAREF competitive positioning and adoption-001.yaml +44 -0
  1001. maref-0.30.0/vault/program.md +51 -0
  1002. maref-0.30.0/vault/results.tsv +1 -0
  1003. maref-0.30.0/vault/signals/S-20260511-001.yaml +15 -0
  1004. maref-0.30.0/vault/signals/S-20260511-002.yaml +15 -0
  1005. maref-0.30.0/vault/signals/S-20260511-003.yaml +14 -0
  1006. maref-0.30.0/vault/signals/S-20260511-004.yaml +15 -0
  1007. maref-0.30.0/vault/signals/S-20260511-005.yaml +14 -0
  1008. maref-0.30.0/vault/signals/S-20260511-006.yaml +15 -0
  1009. maref-0.30.0/vault/signals/S-20260511-007.yaml +15 -0
  1010. maref-0.30.0/vault/signals/S-20260511-008.yaml +15 -0
  1011. maref-0.30.0/vault/signals/S-20260511-009.yaml +15 -0
  1012. maref-0.30.0/vault/signals/S-20260511-010.yaml +17 -0
  1013. maref-0.30.0/vault/signals/S-20260511-011.yaml +16 -0
  1014. maref-0.30.0/vault/signals/S-20260511-012.yaml +16 -0
  1015. maref-0.30.0/vault/signals/S-20260516-001.yaml +30 -0
@@ -0,0 +1,45 @@
1
+ # MAREF Environment Configuration
2
+ # Copy this file to ~/.maref.env (for LaunchAgent) or .env (for project)
3
+ # and fill in your actual API keys
4
+
5
+ # ==========================================
6
+ # Required: API Keys
7
+ # ==========================================
8
+
9
+ # 阿里云百炼 DashScope API Key
10
+ # Get yours at: https://dashscope.console.aliyun.com/apiKey
11
+ DASHSCOPE_API_KEY=sk-your-key-here
12
+
13
+ # Optional: Other LLM providers
14
+ # OPENAI_API_KEY=sk-your-openai-key
15
+ # ANTHROPIC_API_KEY=sk-your-anthropic-key
16
+
17
+ # ==========================================
18
+ # Optional: Path Configuration
19
+ # Uncomment and set to your absolute paths if needed
20
+ # ==========================================
21
+
22
+ # MAREF_PROJECT_ROOT=/path/to/maref-experiments
23
+ # MAREF_MAILBOX_DIR=/path/to/mailbox
24
+ # MAREF_OUTPUT_DIR=/path/to/output
25
+
26
+ # ==========================================
27
+ # Installation Instructions
28
+ # ==========================================
29
+ #
30
+ # For LaunchAgent (macOS):
31
+ # 1. Copy this file to ~/.maref.env
32
+ # 2. Edit ~/.maref.env with your actual API keys
33
+ # 3. Ensure permissions: chmod 600 ~/.maref.env
34
+ # 4. Install LaunchAgent plist
35
+ # 5. The wrapper script will automatically load ~/.maref.env
36
+ #
37
+ # For Project Development:
38
+ # 1. Copy this file to .env in project root
39
+ # 2. Edit .env with your actual API keys
40
+ # 3. .env is already in .gitignore
41
+ #
42
+ # For macOS Keychain (recommended for production):
43
+ # 1. Install keyring: pip install keyring
44
+ # 2. Store key: python -c "import keyring; keyring.set_password('com.maref.agent', 'DASHSCOPE_API_KEY', 'sk-your-key')"
45
+ # 3. The KeyringStore will automatically retrieve from keychain
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: Bug Report
3
+ about: Report a bug in MAREF
4
+ title: "[Bug] "
5
+ labels: ["bug"]
6
+ assignees: []
7
+ ---
8
+
9
+ ## Description
10
+
11
+ Clear and concise description of the bug.
12
+
13
+ ## Steps to Reproduce
14
+
15
+ 1.
16
+ 2.
17
+ 3.
18
+
19
+ ## Expected Behavior
20
+
21
+ What you expected to happen.
22
+
23
+ ## Actual Behavior
24
+
25
+ What actually happened, including error messages or stack traces.
26
+
27
+ ## Environment
28
+
29
+ - MAREF version:
30
+ - Python version:
31
+ - OS:
32
+ - Dependencies: `pip list | grep -E "maref|torch|pydantic"`
33
+
34
+ ## Additional Context
35
+
36
+ Any other context, logs, or screenshots.
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: Feature Request
3
+ about: Suggest a new feature for MAREF
4
+ title: "[Feature] "
5
+ labels: ["enhancement"]
6
+ assignees: []
7
+ ---
8
+
9
+ ## Problem Statement
10
+
11
+ What problem does this feature solve?
12
+
13
+ ## Proposed Solution
14
+
15
+ Describe the feature you'd like to see.
16
+
17
+ ## Alternatives Considered
18
+
19
+ Any alternative approaches you've thought about.
20
+
21
+ ## Impact
22
+
23
+ Which MAREF modules/components would be affected?
24
+
25
+ ## Additional Context
26
+
27
+ Any references, papers, or examples from other projects.
@@ -0,0 +1,30 @@
1
+ ## Description
2
+
3
+ <!-- Describe your changes -->
4
+
5
+ ## Type of Change
6
+
7
+ - [ ] Bug fix
8
+ - [ ] New feature
9
+ - [ ] Breaking change
10
+ - [ ] Documentation update
11
+ - [ ] CI/CD improvement
12
+
13
+ ## Testing
14
+
15
+ - [ ] All existing tests pass
16
+ - [ ] New tests added for new functionality
17
+ - [ ] Coverage does not decrease
18
+
19
+ ## Quality
20
+
21
+ - [ ] `ruff check` passes
22
+ - [ ] `ruff format --check` passes
23
+ - [ ] `mypy src/` passes (where applicable)
24
+
25
+ ## Checklist
26
+
27
+ - [ ] I have read the [Contributing Guide](CONTRIBUTING.md)
28
+ - [ ] My code follows the project style conventions
29
+ - [ ] I have added/updated tests
30
+ - [ ] I have updated documentation if needed
@@ -0,0 +1,40 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ day: "monday"
8
+ open-pull-requests-limit: 10
9
+ labels:
10
+ - "dependencies"
11
+ - "python"
12
+
13
+ - package-ecosystem: "npm"
14
+ directory: "/gui"
15
+ schedule:
16
+ interval: "weekly"
17
+ day: "monday"
18
+ open-pull-requests-limit: 10
19
+ labels:
20
+ - "dependencies"
21
+ - "frontend"
22
+
23
+ - package-ecosystem: "cargo"
24
+ directory: "/gui/src-tauri"
25
+ schedule:
26
+ interval: "weekly"
27
+ day: "monday"
28
+ open-pull-requests-limit: 10
29
+ labels:
30
+ - "dependencies"
31
+ - "rust"
32
+
33
+ - package-ecosystem: "github-actions"
34
+ directory: "/"
35
+ schedule:
36
+ interval: "weekly"
37
+ day: "monday"
38
+ labels:
39
+ - "dependencies"
40
+ - "ci"
@@ -0,0 +1,81 @@
1
+ name: MAREF CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main, develop]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ concurrency:
10
+ group: ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
12
+
13
+ jobs:
14
+ lint:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.11"
21
+ - name: Install dependencies
22
+ run: pip install -e ".[dev]"
23
+ - name: Ruff lint
24
+ run: ruff check src/maref src/maref_lite
25
+ - name: Ruff format check
26
+ run: ruff format --check src/maref src/maref_lite
27
+ - name: Mypy type check
28
+ run: mypy src/maref src/maref_lite
29
+
30
+ test:
31
+ needs: lint
32
+ runs-on: ubuntu-latest
33
+ steps:
34
+ - uses: actions/checkout@v4
35
+ - uses: actions/setup-python@v5
36
+ with:
37
+ python-version: "3.11"
38
+ - name: Install dependencies
39
+ run: pip install -e ".[dev]"
40
+ - name: Run unit tests
41
+ run: |
42
+ coverage run -m pytest tests/ -x -q --timeout=120 -m "not integration and not chaos and not benchmark"
43
+ - name: Validate mock consistency
44
+ run: python -c "from maref.testing.mock_validator import MockValidator; v=MockValidator(schema_dir=Path('vault/schemas'), mock_dir=Path('vault/mocks')); errors=v.validate_all(); assert not errors, f'Mock mismatch: {errors}'"
45
+ - name: Coverage report
46
+ run: coverage report --fail-under=70
47
+
48
+ security:
49
+ needs: lint
50
+ runs-on: ubuntu-latest
51
+ steps:
52
+ - uses: actions/checkout@v4
53
+ with:
54
+ fetch-depth: 0
55
+ - uses: actions/setup-python@v5
56
+ with:
57
+ python-version: "3.11"
58
+ - name: Install dependencies
59
+ run: pip install -e ".[dev]"
60
+ - name: Bandit SAST
61
+ run: bandit -r src/ -c pyproject.toml
62
+ - name: pip-audit
63
+ run: pip-audit
64
+ - name: TruffleHog Secret Scan
65
+ run: |
66
+ pip install trufflehog
67
+ trufflehog filesystem . --config .trufflehog.yaml --since 2026-01-01
68
+
69
+ crypto-test:
70
+ needs: test
71
+ runs-on: ubuntu-latest
72
+ steps:
73
+ - uses: actions/checkout@v4
74
+ - uses: actions/setup-python@v5
75
+ with:
76
+ python-version: "3.11"
77
+ - name: Install dependencies
78
+ run: pip install -e ".[dev]"
79
+ - name: Run cryptography tests
80
+ run: |
81
+ pytest tests/compliance/test_crypto_sm2.py tests/compliance/test_crypto_sm3.py tests/compliance/test_crypto_sm4.py -v
@@ -0,0 +1,220 @@
1
+ name: Docker CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ env:
10
+ GHCR_IMAGE: ghcr.io/${{ github.repository_owner }}/maref
11
+ DOCKERHUB_IMAGE: maref/maref
12
+
13
+ jobs:
14
+ build:
15
+ name: Build & Validate Docker Image
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+
20
+ - name: Set up Docker Buildx
21
+ uses: docker/setup-buildx-action@v3
22
+
23
+ - name: Docker metadata
24
+ id: meta
25
+ uses: docker/metadata-action@v5
26
+ with:
27
+ images: |
28
+ ${{ env.GHCR_IMAGE }}
29
+ ${{ env.DOCKERHUB_IMAGE }}
30
+ tags: |
31
+ type=ref,event=branch
32
+ type=ref,event=pr
33
+ type=sha,format=short,prefix=sha-
34
+ type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
35
+
36
+ - name: Build Docker image
37
+ uses: docker/build-push-action@v6
38
+ with:
39
+ context: .
40
+ push: false
41
+ load: true
42
+ tags: ${{ steps.meta.outputs.tags }}
43
+ cache-from: type=gha
44
+ cache-to: type=gha,mode=max
45
+
46
+ - name: Verify image metadata
47
+ run: |
48
+ docker inspect ${{ steps.meta.outputs.tags }} | python3 -c "
49
+ import json, sys
50
+ data = json.load(sys.stdin)[0]
51
+ labels = data['Config']['Labels']
52
+ print(f\"Image: {labels.get('org.opencontainers.image.title', 'N/A')}\")
53
+ print(f\"Version: {labels.get('org.opencontainers.image.version', 'N/A')}\")
54
+ print(f\"Size: {data['Size'] / 1024 / 1024:.1f} MB\")
55
+ assert 'MAREF' in labels.get('org.opencontainers.image.title', '')
56
+ "
57
+
58
+ - name: Start container with Xvfb
59
+ run: |
60
+ docker run -d --name maref-test \
61
+ -p 8080:8080 \
62
+ -e MAREF_DRY_RUN=true \
63
+ -e DISPLAY=:99 \
64
+ --entrypoint /bin/bash \
65
+ ${{ steps.meta.outputs.tags }} \
66
+ -c "Xvfb :99 -screen 0 1280x720x24 & sleep 1 && maref serve --host 0.0.0.0 --port 8080"
67
+
68
+ - name: Wait for healthy
69
+ run: |
70
+ for i in $(seq 1 30); do
71
+ status=$(docker inspect --format='{{json .State.Health.Status}}' maref-test 2>/dev/null || echo "\"starting\"")
72
+ echo "Attempt $i: Health=$status"
73
+ if [ "$status" = "\"healthy\"" ]; then
74
+ echo "✓ Container is healthy!"
75
+ exit 0
76
+ fi
77
+ sleep 2
78
+ done
79
+ echo "✗ Container failed to become healthy within 60s"
80
+ docker logs maref-test --tail 50
81
+ exit 1
82
+
83
+ - name: Verify health endpoint
84
+ run: |
85
+ curl -sf http://localhost:8080/api/health || \
86
+ (echo "⚠ Health endpoint not available — checking container logs"; \
87
+ docker logs maref-test --tail 20)
88
+
89
+ - name: Container logs (on failure)
90
+ if: failure()
91
+ run: docker logs maref-test --tail 100
92
+
93
+ - name: Cleanup
94
+ if: always()
95
+ run: docker rm -f maref-test || true
96
+
97
+ - name: Generate SBOM
98
+ uses: anchore/sbom-action@v0
99
+ with:
100
+ image: ${{ steps.meta.outputs.tags }}
101
+ format: cyclonedx
102
+ output-file: sbom.cdx.json
103
+ - name: Upload SBOM
104
+ uses: actions/upload-artifact@v4
105
+ with:
106
+ name: sbom
107
+ path: sbom.cdx.json
108
+
109
+ - name: Image size report
110
+ run: |
111
+ echo "### Docker Image Size Report" >> $GITHUB_STEP_SUMMARY
112
+ docker images --format "| {{.Repository}}:{{.Tag}} | {{.Size}} |" ${{ steps.meta.outputs.tags }} >> $GITHUB_STEP_SUMMARY
113
+
114
+ scan:
115
+ name: Docker Vulnerability Scan
116
+ runs-on: ubuntu-latest
117
+ needs: [build]
118
+ steps:
119
+ - uses: actions/checkout@v4
120
+
121
+ - name: Set up Docker Buildx
122
+ uses: docker/setup-buildx-action@v3
123
+
124
+ - name: Build image for scan
125
+ uses: docker/build-push-action@v6
126
+ with:
127
+ context: .
128
+ push: false
129
+ load: true
130
+ tags: maref/maref:scan
131
+
132
+ - name: Run Trivy vulnerability scanner
133
+ uses: aquasecurity/trivy-action@master
134
+ with:
135
+ scan-type: image
136
+ scan-ref: maref/maref:scan
137
+ format: table
138
+ exit-code: 1
139
+ severity: HIGH,CRITICAL
140
+ ignore-unfixed: true
141
+
142
+ - name: Run Trivy with SARIF output
143
+ uses: aquasecurity/trivy-action@master
144
+ if: always()
145
+ with:
146
+ scan-type: image
147
+ scan-ref: maref/maref:scan
148
+ format: sarif
149
+ output: trivy-results.sarif
150
+ severity: HIGH,CRITICAL
151
+ ignore-unfixed: true
152
+
153
+ - name: Upload Trivy results
154
+ if: always()
155
+ uses: github/codeql-action/upload-sarif@v3
156
+ with:
157
+ sarif_file: trivy-results.sarif
158
+ category: docker-vulnerability
159
+
160
+ - name: Scan summary
161
+ if: always()
162
+ run: |
163
+ echo "### Docker Vulnerability Scan Results" >> $GITHUB_STEP_SUMMARY
164
+ echo "Image: \`maref/maref:scan\`" >> $GITHUB_STEP_SUMMARY
165
+ echo "Severity: HIGH, CRITICAL" >> $GITHUB_STEP_SUMMARY
166
+ echo "Unfixed: ignored" >> $GITHUB_STEP_SUMMARY
167
+
168
+ push:
169
+ name: Push Docker Images to Registries
170
+ runs-on: ubuntu-latest
171
+ needs: [build, scan]
172
+ if: github.ref == 'refs/heads/main' && github.event_name == 'push'
173
+ steps:
174
+ - uses: actions/checkout@v4
175
+
176
+ - name: Set up Docker Buildx
177
+ uses: docker/setup-buildx-action@v3
178
+
179
+ - name: Docker metadata
180
+ id: meta
181
+ uses: docker/metadata-action@v5
182
+ with:
183
+ images: |
184
+ ${{ env.GHCR_IMAGE }}
185
+ ${{ env.DOCKERHUB_IMAGE }}
186
+ tags: |
187
+ type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
188
+ type=semver,pattern={{version}}
189
+ type=semver,pattern={{major}}.{{minor}}
190
+ type=sha,format=short,prefix=sha-
191
+
192
+ - name: Log in to GitHub Container Registry
193
+ uses: docker/login-action@v3
194
+ with:
195
+ registry: ghcr.io
196
+ username: ${{ github.actor }}
197
+ password: ${{ secrets.GITHUB_TOKEN }}
198
+
199
+ - name: Log in to Docker Hub
200
+ uses: docker/login-action@v3
201
+ with:
202
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
203
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
204
+
205
+ - name: Build and push Docker images
206
+ uses: docker/build-push-action@v6
207
+ with:
208
+ context: .
209
+ push: true
210
+ tags: ${{ steps.meta.outputs.tags }}
211
+ cache-from: type=gha
212
+ cache-to: type=gha,mode=max
213
+
214
+ - name: Push summary
215
+ run: |
216
+ echo "### Docker Image Push Summary" >> $GITHUB_STEP_SUMMARY
217
+ echo "| Registry | Image | Tags |" >> $GITHUB_STEP_SUMMARY
218
+ echo "|----------|-------|------|" >> $GITHUB_STEP_SUMMARY
219
+ echo "| GHCR | ${{ env.GHCR_IMAGE }} | ${{ steps.meta.outputs.tags }} |" >> $GITHUB_STEP_SUMMARY
220
+ echo "| Docker Hub | ${{ env.DOCKERHUB_IMAGE }} | ${{ steps.meta.outputs.tags }} |" >> $GITHUB_STEP_SUMMARY
@@ -0,0 +1,27 @@
1
+ name: Formal Verification
2
+
3
+ on:
4
+ push:
5
+ paths:
6
+ - 'src/formal/**'
7
+ - 'src/maref/governance/**'
8
+ pull_request:
9
+ paths:
10
+ - 'src/formal/**'
11
+ - 'src/maref/governance/**'
12
+ workflow_dispatch:
13
+
14
+ jobs:
15
+ tla-verify:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - name: Setup TLA+
20
+ run: |
21
+ wget -q https://github.com/tlaplus/tlaplus/releases/download/v1.4.5/tla2tools.jar -O /tmp/tla2tools.jar
22
+ - name: Verify Gray Code FSM
23
+ run: |
24
+ java -cp /tmp/tla2tools.jar tlc2.TLC src/formal/MarefLite.tla -config src/formal/MarefLiteMC.cfg
25
+ - name: Verify Consensus
26
+ run: |
27
+ java -cp /tmp/tla2tools.jar tlc2.TLC src/formal/MAREF_Consensus.tla -config src/formal/MAREF_ConsensusMC.cfg
@@ -0,0 +1,44 @@
1
+ name: Frontend Security Audit
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths:
7
+ - 'gui/**'
8
+ - '.github/workflows/frontend-security.yml'
9
+ pull_request:
10
+ branches: [main]
11
+ paths:
12
+ - 'gui/**'
13
+ - '.github/workflows/frontend-security.yml'
14
+ schedule:
15
+ - cron: '0 9 * * 1'
16
+
17
+ jobs:
18
+ pnpm-audit:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+
23
+ - name: Setup Node.js
24
+ uses: actions/setup-node@v4
25
+ with:
26
+ node-version: '20'
27
+
28
+ - name: Setup pnpm
29
+ uses: pnpm/action-setup@v3
30
+ with:
31
+ version: 10.33.2
32
+
33
+ - name: Install dependencies
34
+ working-directory: ./gui
35
+ run: pnpm install --frozen-lockfile
36
+
37
+ - name: Run pnpm audit
38
+ working-directory: ./gui
39
+ run: pnpm audit --audit-level=moderate
40
+
41
+ - name: Run ESLint security checks
42
+ working-directory: ./gui
43
+ run: pnpm lint
44
+ continue-on-error: true
@@ -0,0 +1,58 @@
1
+ name: Lighthouse CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths:
7
+ - 'gui/**'
8
+ - '.github/workflows/lighthouse.yml'
9
+ - 'lighthouserc.json'
10
+ pull_request:
11
+ branches: [main]
12
+ paths:
13
+ - 'gui/**'
14
+ - '.github/workflows/lighthouse.yml'
15
+ - 'lighthouserc.json'
16
+
17
+ jobs:
18
+ lighthouse:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+
23
+ - name: Setup Node.js
24
+ uses: actions/setup-node@v4
25
+ with:
26
+ node-version: '20'
27
+
28
+ - name: Setup pnpm
29
+ uses: pnpm/action-setup@v3
30
+ with:
31
+ version: 10.33.2
32
+
33
+ - name: Install dependencies
34
+ working-directory: ./gui
35
+ run: pnpm install --frozen-lockfile
36
+
37
+ - name: Build GUI
38
+ working-directory: ./gui
39
+ run: pnpm build
40
+
41
+ - name: Run Lighthouse CI
42
+ working-directory: ./gui
43
+ run: |
44
+ npm install -g @lhci/cli@0.14.x
45
+ lhci autorun --config=../lighthouserc.json
46
+ env:
47
+ LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
48
+
49
+ - name: Check bundle size
50
+ working-directory: ./gui
51
+ run: npx bundlesize
52
+
53
+ - name: Upload Lighthouse reports
54
+ uses: actions/upload-artifact@v4
55
+ if: always()
56
+ with:
57
+ name: lighthouse-reports
58
+ path: gui/.lighthouseci/
@@ -0,0 +1,19 @@
1
+ name: Performance Budget
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [main, develop]
6
+
7
+ jobs:
8
+ lighthouse:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: actions/setup-node@v4
13
+ with:
14
+ node-version: "20"
15
+ - run: npm install -g @lhci/cli
16
+ - run: npm install
17
+ working-directory: gui
18
+ - run: lhci autorun
19
+ working-directory: gui