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.
- maref-0.30.0/.chaos-reports/full-run-20260523-191257.json +1 -0
- maref-0.30.0/.env.example +45 -0
- maref-0.30.0/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- maref-0.30.0/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
- maref-0.30.0/.github/PULL_REQUEST_TEMPLATE.md +30 -0
- maref-0.30.0/.github/dependabot.yml +40 -0
- maref-0.30.0/.github/workflows/ci.yml +81 -0
- maref-0.30.0/.github/workflows/docker.yml +220 -0
- maref-0.30.0/.github/workflows/formal-verify.yml +27 -0
- maref-0.30.0/.github/workflows/frontend-security.yml +44 -0
- maref-0.30.0/.github/workflows/lighthouse.yml +58 -0
- maref-0.30.0/.github/workflows/performance.yml +19 -0
- maref-0.30.0/.github/workflows/release-gate.yml +86 -0
- maref-0.30.0/.github/workflows/release.yml +103 -0
- maref-0.30.0/.github/workflows/security-scan.yml +75 -0
- maref-0.30.0/.github/workflows/sonarcloud.yml +27 -0
- maref-0.30.0/.gitignore +154 -0
- maref-0.30.0/.pre-commit-config.yaml +24 -0
- maref-0.30.0/AGENTS.md +146 -0
- maref-0.30.0/AIP-ACPs-Technical-Analysis.md +228 -0
- maref-0.30.0/CHANGELOG.md +555 -0
- maref-0.30.0/CLA.md +63 -0
- maref-0.30.0/CODE_OF_CONDUCT.md +44 -0
- maref-0.30.0/CONTRIBUTING.md +85 -0
- maref-0.30.0/Dockerfile +69 -0
- maref-0.30.0/LICENSE +190 -0
- maref-0.30.0/LICENSES/Apache-2.0.txt +190 -0
- maref-0.30.0/NOTICE +39 -0
- maref-0.30.0/PKG-INFO +212 -0
- maref-0.30.0/README.md +128 -0
- maref-0.30.0/SECURITY.md +80 -0
- maref-0.30.0/SLO.md +26 -0
- maref-0.30.0/cli_percv_demo.py +173 -0
- maref-0.30.0/configs/grafana/maref-dashboard.json +158 -0
- maref-0.30.0/data/cache/.gitkeep +0 -0
- maref-0.30.0/data/logs/.gitkeep +0 -0
- maref-0.30.0/data/raw/.gitkeep +0 -0
- maref-0.30.0/data-original/logs/.gitkeep +0 -0
- maref-0.30.0/data-original/results/.gitkeep +0 -0
- maref-0.30.0/docs/CRASH_PREVENTION_GUIDE.md +195 -0
- maref-0.30.0/docs/MAREF-Security-Whitepaper.md +212 -0
- maref-0.30.0/docs/MAREF-Technical-Whitepaper-arXiv.md +592 -0
- maref-0.30.0/docs/MAREF-Technical-Whitepaper-zh-CN.md +586 -0
- 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
- maref-0.30.0/docs/MAREF_CRASH_PREVENTION_REPORT.md +232 -0
- maref-0.30.0/docs/adr-001-tauri-architecture.md +50 -0
- maref-0.30.0/docs/aip-pioneer-application.md +144 -0
- maref-0.30.0/docs/api.md +427 -0
- maref-0.30.0/docs/archive/phase_o_observability_archive.md +46 -0
- maref-0.30.0/docs/arxiv-submission/main.tex +637 -0
- maref-0.30.0/docs/arxiv-submission/references.bib +74 -0
- maref-0.30.0/docs/backup-strategy.md +221 -0
- maref-0.30.0/docs/canary-release-plan.md +247 -0
- maref-0.30.0/docs/chaos-scenarios.md +379 -0
- maref-0.30.0/docs/code-signing-process.md +85 -0
- maref-0.30.0/docs/convergence-whitepaper.md +231 -0
- maref-0.30.0/docs/deployment.md +303 -0
- maref-0.30.0/docs/development.md +187 -0
- maref-0.30.0/docs/emergency-contacts.md +192 -0
- maref-0.30.0/docs/error-code-mapping.md +34 -0
- maref-0.30.0/docs/escalation-path.md +228 -0
- maref-0.30.0/docs/ga-release-checklist.md +43 -0
- maref-0.30.0/docs/github-release-checklist-v0.30.0-GA.md +82 -0
- maref-0.30.0/docs/go-no-go-template.md +95 -0
- maref-0.30.0/docs/go-to-market-plan.md +31 -0
- maref-0.30.0/docs/incident-postmortem-template.md +237 -0
- maref-0.30.0/docs/maref-org-ci-workflows.md +378 -0
- maref-0.30.0/docs/opc-registration-guide.md +180 -0
- maref-0.30.0/docs/ops-faq.md +175 -0
- maref-0.30.0/docs/phase_o_observability_audit_report.md +302 -0
- maref-0.30.0/docs/plans/2026-05-15-ecosystem-closed-loop.md +2110 -0
- maref-0.30.0/docs/post-release-monitoring-checklist.md +77 -0
- maref-0.30.0/docs/prr-progress.json +152 -0
- maref-0.30.0/docs/quickstart.md +214 -0
- maref-0.30.0/docs/release-approval-matrix.md +54 -0
- maref-0.30.0/docs/runbook/README.md +29 -0
- maref-0.30.0/docs/runbook/rb-001-sidecar-down.md +58 -0
- maref-0.30.0/docs/runbook/rb-002-governance-latency.md +45 -0
- maref-0.30.0/docs/runbook/rb-003-drift-detected.md +38 -0
- maref-0.30.0/docs/runbook/rb-004-audit-log-failure.md +41 -0
- maref-0.30.0/docs/runbook/rb-005-memory-growth.md +44 -0
- maref-0.30.0/docs/runbook/rb-006-high-latency.md +60 -0
- maref-0.30.0/docs/runbook/rb-007-error-budget-burn.md +59 -0
- maref-0.30.0/docs/runbook/rb-008-governance-drift.md +54 -0
- maref-0.30.0/docs/slo.md +117 -0
- maref-0.30.0/docs/trademark-application-checklist.md +236 -0
- maref-0.30.0/docs/user-communication-plan.md +35 -0
- maref-0.30.0/experiments/formal/MAREFDeskJoint.tla +168 -0
- maref-0.30.0/experiments/formal/MAREF_Consensus.tla +208 -0
- maref-0.30.0/experiments/formal/MAREF_ConsensusMC.cfg +26 -0
- maref-0.30.0/experiments/formal/MarefLite.tla +104 -0
- maref-0.30.0/experiments/formal/MarefLiteMC.cfg +25 -0
- maref-0.30.0/experiments/formal/MarefLiteModel.tla +159 -0
- maref-0.30.0/experiments/formal/README.md +53 -0
- maref-0.30.0/experiments/maref_implementation/gray_code.py +245 -0
- maref-0.30.0/experiments/maref_implementation/hexagram.py +292 -0
- maref-0.30.0/experiments/maref_implementation/state_space.py +422 -0
- maref-0.30.0/experiments/maref_implementation/three_talents_orchestrator.py +458 -0
- maref-0.30.0/experiments/quick_test.py +40 -0
- maref-0.30.0/experiments/results_analysis/baseline_results.json +356 -0
- maref-0.30.0/experiments/results_analysis/maref_results.json +586 -0
- maref-0.30.0/experiments/results_analysis/validation_report.json +195 -0
- maref-0.30.0/experiments/simulation_engine/athena_queue_simulator.py +649 -0
- maref-0.30.0/experiments/test_imports.py +52 -0
- maref-0.30.0/experiments/test_scenarios/baseline_scenario.py +285 -0
- maref-0.30.0/experiments/test_scenarios/maref_scenario.py +719 -0
- maref-0.30.0/experiments/validation_protocols/run_validation.py +998 -0
- maref-0.30.0/gui/.gitignore +26 -0
- maref-0.30.0/gui/README.md +73 -0
- maref-0.30.0/gui/electron/entitlements.mac.plist +12 -0
- maref-0.30.0/gui/electron/main.cjs +151 -0
- maref-0.30.0/gui/electron/preload.cjs +20 -0
- maref-0.30.0/gui/eslint.config.js +22 -0
- maref-0.30.0/gui/index.html +13 -0
- maref-0.30.0/gui/package.json +162 -0
- maref-0.30.0/gui/pet.html +301 -0
- maref-0.30.0/gui/pnpm-lock.yaml +7811 -0
- maref-0.30.0/gui/public/favicon.svg +1 -0
- maref-0.30.0/gui/public/icons.svg +24 -0
- maref-0.30.0/gui/public/sw.js +68 -0
- maref-0.30.0/gui/src/App.tsx +322 -0
- maref-0.30.0/gui/src/api/client.ts +229 -0
- maref-0.30.0/gui/src/api/mock.ts +373 -0
- maref-0.30.0/gui/src/components/chat/AgentCapabilities.tsx +39 -0
- maref-0.30.0/gui/src/components/chat/ArtifactCard.tsx +137 -0
- maref-0.30.0/gui/src/components/chat/ChatInput.tsx +258 -0
- maref-0.30.0/gui/src/components/chat/ControlBar.tsx +143 -0
- maref-0.30.0/gui/src/components/chat/MessageBubble.tsx +124 -0
- maref-0.30.0/gui/src/components/chat/MessageList.tsx +69 -0
- maref-0.30.0/gui/src/components/chat/PermissionBanner.tsx +107 -0
- maref-0.30.0/gui/src/components/chat/SceneCards.tsx +91 -0
- maref-0.30.0/gui/src/components/chat/ThinkingIndicator.tsx +18 -0
- maref-0.30.0/gui/src/components/chat/ToolCall.tsx +88 -0
- maref-0.30.0/gui/src/components/common/ErrorBoundary.tsx +68 -0
- maref-0.30.0/gui/src/components/common/ErrorDisplay.tsx +56 -0
- maref-0.30.0/gui/src/components/common/HITLConfirmationDialog.tsx +134 -0
- maref-0.30.0/gui/src/components/common/LanguageSwitch.tsx +51 -0
- maref-0.30.0/gui/src/components/layout/ChatPanel.tsx +96 -0
- maref-0.30.0/gui/src/components/layout/CommandPalette.tsx +112 -0
- maref-0.30.0/gui/src/components/layout/HomeDashboard.tsx +165 -0
- maref-0.30.0/gui/src/components/layout/MarefDrawer.tsx +100 -0
- maref-0.30.0/gui/src/components/layout/ResizeHandle.tsx +32 -0
- maref-0.30.0/gui/src/components/layout/Sidebar.tsx +277 -0
- maref-0.30.0/gui/src/components/layout/StatusBar.tsx +104 -0
- maref-0.30.0/gui/src/components/layout/TabBar.tsx +51 -0
- maref-0.30.0/gui/src/components/layout/TerminalPanel.tsx +351 -0
- maref-0.30.0/gui/src/components/onboarding/WelcomeFlow.tsx +326 -0
- maref-0.30.0/gui/src/components/sidebar/AgentList.tsx +43 -0
- maref-0.30.0/gui/src/components/sidebar/FileTree.tsx +122 -0
- maref-0.30.0/gui/src/components/sidebar/FileTreeItem.tsx +129 -0
- maref-0.30.0/gui/src/components/sidebar/ProviderSelector.tsx +66 -0
- maref-0.30.0/gui/src/components/sidebar/TaskList.tsx +59 -0
- maref-0.30.0/gui/src/components/status/ContextGauge.tsx +23 -0
- maref-0.30.0/gui/src/components/status/EnvIndicator.tsx +28 -0
- maref-0.30.0/gui/src/components/status/GovernanceStatus.tsx +64 -0
- maref-0.30.0/gui/src/components/status/PetIndicator.tsx +85 -0
- maref-0.30.0/gui/src/components/status/TokenUsage.tsx +74 -0
- maref-0.30.0/gui/src/components/tools/ToolPanelView.tsx +224 -0
- maref-0.30.0/gui/src/components/tools/index.ts +1 -0
- maref-0.30.0/gui/src/components/views/AnomalyMonitorView.tsx +185 -0
- maref-0.30.0/gui/src/components/views/AuditLogView.tsx +177 -0
- maref-0.30.0/gui/src/components/views/AutomationView.tsx +288 -0
- maref-0.30.0/gui/src/components/views/BrowserView.tsx +242 -0
- maref-0.30.0/gui/src/components/views/DesktopAgentView.tsx +636 -0
- maref-0.30.0/gui/src/components/views/DriftDetectionView.tsx +191 -0
- maref-0.30.0/gui/src/components/views/ExecutionPreview.tsx +286 -0
- maref-0.30.0/gui/src/components/views/FormalVerificationView.tsx +209 -0
- maref-0.30.0/gui/src/components/views/GitView.tsx +312 -0
- maref-0.30.0/gui/src/components/views/GovernanceView.tsx +231 -0
- maref-0.30.0/gui/src/components/views/HITLView.tsx +241 -0
- maref-0.30.0/gui/src/components/views/MarefViews.tsx +7 -0
- maref-0.30.0/gui/src/components/views/PetBuddy.tsx +137 -0
- maref-0.30.0/gui/src/components/views/SettingsView.tsx +176 -0
- maref-0.30.0/gui/src/components/views/SkillsPanel.tsx +332 -0
- maref-0.30.0/gui/src/components/views/TaskPanelView.tsx +355 -0
- maref-0.30.0/gui/src/components/views/TrustScoreView.tsx +228 -0
- maref-0.30.0/gui/src/hooks/useChatStream.ts +109 -0
- maref-0.30.0/gui/src/hooks/useKeyboard.ts +56 -0
- maref-0.30.0/gui/src/hooks/useProviders.ts +18 -0
- maref-0.30.0/gui/src/hooks/useSession.ts +173 -0
- maref-0.30.0/gui/src/hooks/useTerminal.ts +101 -0
- maref-0.30.0/gui/src/index.css +78 -0
- maref-0.30.0/gui/src/main.tsx +44 -0
- maref-0.30.0/gui/src/middleware/csp.ts +54 -0
- maref-0.30.0/gui/src/stores/chatStore.ts +79 -0
- maref-0.30.0/gui/src/stores/hitlStore.ts +106 -0
- maref-0.30.0/gui/src/stores/sessionStore.ts +98 -0
- maref-0.30.0/gui/src/stores/shortcutDefs.ts +204 -0
- maref-0.30.0/gui/src/stores/shortcuts.ts +53 -0
- maref-0.30.0/gui/src/stores/terminalStore.ts +70 -0
- maref-0.30.0/gui/src/stores/uiStore.ts +94 -0
- maref-0.30.0/gui/src/types/index.ts +156 -0
- maref-0.30.0/gui/src/utils/otel.ts +127 -0
- maref-0.30.0/gui/src-tauri/Cargo.lock +5032 -0
- maref-0.30.0/gui/src-tauri/Cargo.toml +22 -0
- maref-0.30.0/gui/src-tauri/build.rs +3 -0
- maref-0.30.0/gui/src-tauri/capabilities/default.json +22 -0
- maref-0.30.0/gui/src-tauri/entitlements.plist +12 -0
- maref-0.30.0/gui/src-tauri/gen/schemas/acl-manifests.json +1 -0
- maref-0.30.0/gui/src-tauri/gen/schemas/capabilities.json +1 -0
- maref-0.30.0/gui/src-tauri/gen/schemas/desktop-schema.json +2678 -0
- maref-0.30.0/gui/src-tauri/gen/schemas/macOS-schema.json +2678 -0
- maref-0.30.0/gui/src-tauri/icons/128x128.png +0 -0
- maref-0.30.0/gui/src-tauri/icons/128x128@2x.png +0 -0
- maref-0.30.0/gui/src-tauri/icons/32x32.png +0 -0
- maref-0.30.0/gui/src-tauri/icons/icon.icns +0 -0
- maref-0.30.0/gui/src-tauri/icons/icon.ico +0 -0
- maref-0.30.0/gui/src-tauri/src/lib.rs +220 -0
- maref-0.30.0/gui/src-tauri/src/main.rs +5 -0
- maref-0.30.0/gui/src-tauri/src/pet.rs +77 -0
- maref-0.30.0/gui/src-tauri/tauri.conf.json +63 -0
- maref-0.30.0/gui/tests/TaskPanelView.test.tsx +249 -0
- maref-0.30.0/gui/tests/gui-smoke.test.tsx +175 -0
- maref-0.30.0/gui/tests/hitl.test.tsx +257 -0
- maref-0.30.0/gui/tests/setup.ts +1 -0
- maref-0.30.0/gui/tsconfig.app.json +27 -0
- maref-0.30.0/gui/tsconfig.json +7 -0
- maref-0.30.0/gui/tsconfig.node.json +24 -0
- maref-0.30.0/gui/vite.config.ts +32 -0
- maref-0.30.0/gui/vitest.config.ts +16 -0
- maref-0.30.0/integration_demo.py +270 -0
- maref-0.30.0/k8s/production/configmap.yaml +13 -0
- maref-0.30.0/k8s/production/deployment.yaml +91 -0
- maref-0.30.0/k8s/production/hpa.yaml +25 -0
- maref-0.30.0/k8s/production/networkpolicy.yaml +35 -0
- maref-0.30.0/lighthouserc.json +32 -0
- maref-0.30.0/mkdocs.yml +80 -0
- maref-0.30.0/pyproject.toml +199 -0
- maref-0.30.0/pyrightconfig.json +48 -0
- maref-0.30.0/requirements.txt +20 -0
- maref-0.30.0/research_output/.gitkeep +0 -0
- maref-0.30.0/results/experiments/.gitkeep +0 -0
- maref-0.30.0/results/feasibility_study/feasibility_analysis_20260419_111915.json +43 -0
- maref-0.30.0/results/feasibility_study/feasibility_report_20260419_111915.md +53 -0
- maref-0.30.0/results/feasibility_study/latest_summary.md +7 -0
- maref-0.30.0/scripts/INSTALL_CRON.md +44 -0
- maref-0.30.0/scripts/INSTALL_GIT_GC.md +95 -0
- maref-0.30.0/scripts/arxiv_submit.py +577 -0
- maref-0.30.0/scripts/backup.sh +411 -0
- maref-0.30.0/scripts/benchmark_api.py +99 -0
- maref-0.30.0/scripts/benchmark_memory.py +101 -0
- maref-0.30.0/scripts/chaos-drill.sh +398 -0
- maref-0.30.0/scripts/check-doc-isolation.sh +40 -0
- maref-0.30.0/scripts/check_desktop_env.py +394 -0
- maref-0.30.0/scripts/com.maref.autoresearch.plist.template +81 -0
- maref-0.30.0/scripts/coverage_per_module.py +121 -0
- maref-0.30.0/scripts/cron_memory_monitor.sh +26 -0
- maref-0.30.0/scripts/desktop_demo_m1.py +129 -0
- maref-0.30.0/scripts/emergency_cleanup.sh +67 -0
- maref-0.30.0/scripts/export_openapi.py +47 -0
- maref-0.30.0/scripts/generate_coverage_report.py +78 -0
- maref-0.30.0/scripts/git_gc_optimize.sh +47 -0
- maref-0.30.0/scripts/guomi_poc.py +110 -0
- maref-0.30.0/scripts/install_windows_service.ps1 +93 -0
- maref-0.30.0/scripts/maref-compliance-sidecar.service +43 -0
- maref-0.30.0/scripts/maref_env_loader.sh +41 -0
- maref-0.30.0/scripts/maref_sidecar_wrapper.sh +88 -0
- maref-0.30.0/scripts/maref_wrapper.sh +85 -0
- maref-0.30.0/scripts/memory_monitor.py +304 -0
- maref-0.30.0/scripts/release-check.sh +22 -0
- maref-0.30.0/scripts/resume-session.sh +324 -0
- maref-0.30.0/scripts/rollback.sh +264 -0
- maref-0.30.0/scripts/run_daily.sh +107 -0
- maref-0.30.0/scripts/run_phase1_stress.py +43 -0
- maref-0.30.0/scripts/run_phase2_5_stress.py +184 -0
- maref-0.30.0/scripts/run_redblue_100.py +163 -0
- maref-0.30.0/scripts/security_scan.sh +70 -0
- maref-0.30.0/scripts/self_assessment.py +468 -0
- maref-0.30.0/scripts/session_recovery.py +602 -0
- maref-0.30.0/scripts/setup_desktop.py +319 -0
- maref-0.30.0/scripts/setup_env.sh +145 -0
- maref-0.30.0/scripts/sidecar_demo.py +331 -0
- maref-0.30.0/scripts/sync_reports.sh +48 -0
- maref-0.30.0/scripts/sync_version.py +199 -0
- maref-0.30.0/scripts/verify_electron_build.sh +120 -0
- maref-0.30.0/sdk/typescript/package.json +19 -0
- maref-0.30.0/sdk/typescript/src/index.ts +52 -0
- maref-0.30.0/sdk/typescript/tsconfig.json +14 -0
- maref-0.30.0/simple_integration_demo.py +94 -0
- maref-0.30.0/sonar-project.properties +7 -0
- maref-0.30.0/src/drift_guard/README.md +108 -0
- maref-0.30.0/src/drift_guard/__init__.py +0 -0
- maref-0.30.0/src/drift_guard/ab_testing.py +283 -0
- maref-0.30.0/src/drift_guard/adaptive_threshold.py +245 -0
- maref-0.30.0/src/drift_guard/drift_benchmark.py +346 -0
- maref-0.30.0/src/drift_guard/metrics.py +242 -0
- maref-0.30.0/src/drift_guard/pipeline.py +312 -0
- maref-0.30.0/src/drift_guard/policy_sandbox.py +455 -0
- maref-0.30.0/src/drift_guard/py.typed +0 -0
- maref-0.30.0/src/drift_guard/types.py +155 -0
- maref-0.30.0/src/formal/MAREFDeskJoint.tla +168 -0
- maref-0.30.0/src/formal/MAREF_Consensus.tla +208 -0
- maref-0.30.0/src/formal/MAREF_ConsensusMC.cfg +26 -0
- maref-0.30.0/src/formal/MAREF_TestIntegration.tla +677 -0
- maref-0.30.0/src/formal/MAREF_TestIntegrationMC.cfg +28 -0
- maref-0.30.0/src/formal/MarefLite.tla +104 -0
- maref-0.30.0/src/formal/MarefLiteMC.cfg +25 -0
- maref-0.30.0/src/formal/MarefLiteModel.tla +159 -0
- maref-0.30.0/src/formal/README.md +53 -0
- maref-0.30.0/src/formal/__init__.py +0 -0
- maref-0.30.0/src/formal/gray_code_validator.py +187 -0
- maref-0.30.0/src/formal/py.typed +0 -0
- maref-0.30.0/src/maref/__init__.py +63 -0
- maref-0.30.0/src/maref/__main__.py +180 -0
- maref-0.30.0/src/maref/agent_card_config.py +202 -0
- maref-0.30.0/src/maref/certification.py +593 -0
- maref-0.30.0/src/maref/compliance/__init__.py +95 -0
- maref-0.30.0/src/maref/compliance/compliance_monitor.py +468 -0
- maref-0.30.0/src/maref/compliance/data_sovereignty.py +684 -0
- maref-0.30.0/src/maref/compliance/eu_ai_act.py +137 -0
- maref-0.30.0/src/maref/compliance/five_eyes.py +173 -0
- maref-0.30.0/src/maref/compliance/hipaa/__init__.py +436 -0
- maref-0.30.0/src/maref/compliance/pci_dss/__init__.py +453 -0
- maref-0.30.0/src/maref/compliance/registry.py +479 -0
- maref-0.30.0/src/maref/compliance/report_generator.py +552 -0
- maref-0.30.0/src/maref/config.py +45 -0
- maref-0.30.0/src/maref/consensus/__init__.py +0 -0
- maref-0.30.0/src/maref/consensus/consistency_dsl.py +149 -0
- maref-0.30.0/src/maref/consensus/nack_protocol.py +254 -0
- maref-0.30.0/src/maref/consensus/vector_clock.py +162 -0
- maref-0.30.0/src/maref/cross_validator/__init__.py +39 -0
- maref-0.30.0/src/maref/cross_validator/ast_normalizer.py +515 -0
- maref-0.30.0/src/maref/cross_validator/consensus_algorithm.py +591 -0
- maref-0.30.0/src/maref/crypto/__init__.py +26 -0
- maref-0.30.0/src/maref/crypto/aia_adapter.py +163 -0
- maref-0.30.0/src/maref/crypto/benchmark.py +150 -0
- maref-0.30.0/src/maref/crypto/sm2.py +186 -0
- maref-0.30.0/src/maref/crypto/sm3.py +51 -0
- maref-0.30.0/src/maref/crypto/sm4.py +44 -0
- maref-0.30.0/src/maref/crypto/sm4_gcm.py +192 -0
- maref-0.30.0/src/maref/desktop/__init__.py +41 -0
- maref-0.30.0/src/maref/desktop/action_recorder.py +239 -0
- maref-0.30.0/src/maref/desktop/agent.py +614 -0
- maref-0.30.0/src/maref/desktop/api_router.py +275 -0
- maref-0.30.0/src/maref/desktop/browser_auth.py +136 -0
- maref-0.30.0/src/maref/desktop/browser_controller.py +202 -0
- maref-0.30.0/src/maref/desktop/clipboard.py +190 -0
- maref-0.30.0/src/maref/desktop/context_isolation.py +203 -0
- maref-0.30.0/src/maref/desktop/controller.py +702 -0
- maref-0.30.0/src/maref/desktop/desktop_governance.py +182 -0
- maref-0.30.0/src/maref/desktop/file_ops.py +284 -0
- maref-0.30.0/src/maref/desktop/file_watcher.py +177 -0
- maref-0.30.0/src/maref/desktop/input_controller.py +505 -0
- maref-0.30.0/src/maref/desktop/mobile_bridge.py +566 -0
- maref-0.30.0/src/maref/desktop/opencua_bench.py +455 -0
- maref-0.30.0/src/maref/desktop/opencua_loader.py +137 -0
- maref-0.30.0/src/maref/desktop/platform_layer.py +134 -0
- maref-0.30.0/src/maref/desktop/policy_decision_tree.py +326 -0
- maref-0.30.0/src/maref/desktop/safety_gate_desktop.py +262 -0
- maref-0.30.0/src/maref/desktop/screen_capture.py +316 -0
- maref-0.30.0/src/maref/desktop/screen_parser.py +600 -0
- maref-0.30.0/src/maref/desktop/task_executor.py +190 -0
- maref-0.30.0/src/maref/desktop/verification.py +334 -0
- maref-0.30.0/src/maref/desktop/window_manager.py +361 -0
- maref-0.30.0/src/maref/desktop/workflow_templates.py +181 -0
- maref-0.30.0/src/maref/eivl/__init__.py +51 -0
- maref-0.30.0/src/maref/eivl/merkle_auditor.py +535 -0
- maref-0.30.0/src/maref/eivl/wasm_sandbox.py +552 -0
- maref-0.30.0/src/maref/evolution/__init__.py +23 -0
- maref-0.30.0/src/maref/evolution/__main__.py +102 -0
- maref-0.30.0/src/maref/evolution/engine.py +408 -0
- maref-0.30.0/src/maref/evolution/metrics.py +222 -0
- maref-0.30.0/src/maref/evolution/real_metrics.py +151 -0
- maref-0.30.0/src/maref/evolution/reporter.py +108 -0
- maref-0.30.0/src/maref/executor/__init__.py +27 -0
- maref-0.30.0/src/maref/executor/api.py +177 -0
- maref-0.30.0/src/maref/executor/checkpointer.py +196 -0
- maref-0.30.0/src/maref/executor/notifications.py +122 -0
- maref-0.30.0/src/maref/executor/persistent_store.py +188 -0
- maref-0.30.0/src/maref/executor/queue.py +452 -0
- maref-0.30.0/src/maref/executor/scheduler.py +253 -0
- maref-0.30.0/src/maref/executor/session.py +214 -0
- maref-0.30.0/src/maref/executor/types.py +105 -0
- maref-0.30.0/src/maref/executor/worker.py +179 -0
- maref-0.30.0/src/maref/features/__init__.py +15 -0
- maref-0.30.0/src/maref/features/feature_flags.py +167 -0
- maref-0.30.0/src/maref/gaas/__init__.py +17 -0
- maref-0.30.0/src/maref/gaas/api.py +276 -0
- maref-0.30.0/src/maref/gaas/audit_service.py +141 -0
- maref-0.30.0/src/maref/gaas/billing.py +120 -0
- maref-0.30.0/src/maref/gaas/cb_pool.py +137 -0
- maref-0.30.0/src/maref/gaas/governance_router.py +195 -0
- maref-0.30.0/src/maref/gaas/hitl_service.py +173 -0
- maref-0.30.0/src/maref/gaas/models.py +125 -0
- maref-0.30.0/src/maref/gaas/tenant.py +80 -0
- maref-0.30.0/src/maref/gaas/trust_service.py +70 -0
- maref-0.30.0/src/maref/governance/__init__.py +43 -0
- maref-0.30.0/src/maref/governance/audit.py +388 -0
- maref-0.30.0/src/maref/governance/circuit_breaker.py +149 -0
- maref-0.30.0/src/maref/governance/constants.py +77 -0
- maref-0.30.0/src/maref/governance/db.py +199 -0
- maref-0.30.0/src/maref/governance/oscillation.py +191 -0
- maref-0.30.0/src/maref/governance/percv_hooks.py +149 -0
- maref-0.30.0/src/maref/governance/state_machine.py +240 -0
- maref-0.30.0/src/maref/governance/threat_bridge.py +136 -0
- maref-0.30.0/src/maref/governance/trust_bridge.py +185 -0
- maref-0.30.0/src/maref/governance/types.py +77 -0
- maref-0.30.0/src/maref/human/__init__.py +44 -0
- maref-0.30.0/src/maref/human/decision_api.py +280 -0
- maref-0.30.0/src/maref/human/interrupt_protocol.py +164 -0
- maref-0.30.0/src/maref/human/rule_engine.py +244 -0
- maref-0.30.0/src/maref/identity/__init__.py +13 -0
- maref-0.30.0/src/maref/identity/credential.py +121 -0
- maref-0.30.0/src/maref/identity/did_registry.py +70 -0
- maref-0.30.0/src/maref/identity/trust_engine.py +131 -0
- maref-0.30.0/src/maref/inference/__init__.py +19 -0
- maref-0.30.0/src/maref/inference/memory_trust.py +148 -0
- maref-0.30.0/src/maref/integration/__init__.py +254 -0
- maref-0.30.0/src/maref/integration/a2a_bridge.py +257 -0
- maref-0.30.0/src/maref/integration/a2a_secure_transport.py +212 -0
- maref-0.30.0/src/maref/integration/a2a_types.py +142 -0
- maref-0.30.0/src/maref/integration/deerflow_bridge.py +209 -0
- maref-0.30.0/src/maref/integration/feature_dev/__init__.py +35 -0
- maref-0.30.0/src/maref/integration/feature_dev/content_producer.py +305 -0
- maref-0.30.0/src/maref/integration/feature_dev/content_scorer.py +179 -0
- maref-0.30.0/src/maref/integration/feature_dev/doc_ingestor.py +463 -0
- maref-0.30.0/src/maref/integration/feature_dev/feature_cycle.py +314 -0
- maref-0.30.0/src/maref/integration/feature_dev/llm_client.py +142 -0
- maref-0.30.0/src/maref/integration/feature_dev/progress_tracker.py +165 -0
- maref-0.30.0/src/maref/integration/feature_dev/task_generator.py +167 -0
- maref-0.30.0/src/maref/integration/feature_dev/verification_engine.py +291 -0
- maref-0.30.0/src/maref/integration/flag_bridge.py +228 -0
- maref-0.30.0/src/maref/integration/gateway.py +241 -0
- maref-0.30.0/src/maref/integration/hitl.py +182 -0
- maref-0.30.0/src/maref/integration/hitl_api.py +253 -0
- maref-0.30.0/src/maref/integration/mcp_bridge.py +142 -0
- maref-0.30.0/src/maref/integration/mcp_client.py +230 -0
- maref-0.30.0/src/maref/integration/mcp_governance.py +833 -0
- maref-0.30.0/src/maref/integration/mcp_security.py +321 -0
- maref-0.30.0/src/maref/integration/mcp_security_middleware.py +212 -0
- maref-0.30.0/src/maref/integration/mcp_server.py +242 -0
- maref-0.30.0/src/maref/integration/mcp_transport.py +283 -0
- maref-0.30.0/src/maref/integration/memory_bridge.py +253 -0
- maref-0.30.0/src/maref/integration/percv/__init__.py +45 -0
- maref-0.30.0/src/maref/integration/percv/card_bridge.py +202 -0
- maref-0.30.0/src/maref/integration/percv/config.py +76 -0
- maref-0.30.0/src/maref/integration/percv/cost_monitor.py +122 -0
- maref-0.30.0/src/maref/integration/percv/feedback_loop.py +194 -0
- maref-0.30.0/src/maref/integration/percv/gateway_adapter.py +391 -0
- maref-0.30.0/src/maref/integration/percv/orchestrator.py +349 -0
- maref-0.30.0/src/maref/integration/percv/pipeline_adapter.py +235 -0
- maref-0.30.0/src/maref/integration/percv/ratchet_bridge.py +227 -0
- maref-0.30.0/src/maref/integration/percv/verification_bridge.py +336 -0
- maref-0.30.0/src/maref/integration/protocol_bridge.py +127 -0
- maref-0.30.0/src/maref/integration/remote_bridge.py +187 -0
- maref-0.30.0/src/maref/integration/symphony.py +239 -0
- maref-0.30.0/src/maref/integration/test_platform/__init__.py +97 -0
- maref-0.30.0/src/maref/integration/test_platform/card_adapter.py +243 -0
- maref-0.30.0/src/maref/integration/test_platform/eval_observer.py +241 -0
- maref-0.30.0/src/maref/integration/test_platform/quality_gate.py +265 -0
- maref-0.30.0/src/maref/integration/test_platform/schema.py +219 -0
- maref-0.30.0/src/maref/integration/test_platform/score_mapper.py +213 -0
- maref-0.30.0/src/maref/integration/test_platform/state_trigger.py +311 -0
- maref-0.30.0/src/maref/integration/test_platform/tla_verifier.py +254 -0
- maref-0.30.0/src/maref/knowledge/__init__.py +24 -0
- maref-0.30.0/src/maref/knowledge/graph.py +478 -0
- maref-0.30.0/src/maref/knowledge/hypothesis_cycle.py +148 -0
- maref-0.30.0/src/maref/knowledge/relations.py +224 -0
- maref-0.30.0/src/maref/learning/__init__.py +24 -0
- maref-0.30.0/src/maref/learning/ab_test.py +208 -0
- maref-0.30.0/src/maref/learning/replay.py +300 -0
- maref-0.30.0/src/maref/learning/scheduler.py +133 -0
- maref-0.30.0/src/maref/life_state/__init__.py +18 -0
- maref-0.30.0/src/maref/life_state/federation.py +150 -0
- maref-0.30.0/src/maref/life_state/health.py +187 -0
- maref-0.30.0/src/maref/life_state/lifecycle.py +155 -0
- maref-0.30.0/src/maref/life_state/messaging.py +147 -0
- maref-0.30.0/src/maref/life_state/metadata.py +124 -0
- maref-0.30.0/src/maref/life_state/registry.py +148 -0
- maref-0.30.0/src/maref/life_state/resources.py +129 -0
- maref-0.30.0/src/maref/life_state/sandbox.py +149 -0
- maref-0.30.0/src/maref/life_state/state_machine.py +151 -0
- maref-0.30.0/src/maref/marketplace/__init__.py +40 -0
- maref-0.30.0/src/maref/marketplace/registry.py +250 -0
- maref-0.30.0/src/maref/marketplace/reputation.py +146 -0
- maref-0.30.0/src/maref/marketplace/semantic_matcher.py +97 -0
- maref-0.30.0/src/maref/marketplace/version_negotiator.py +142 -0
- maref-0.30.0/src/maref/memory/__init__.py +37 -0
- maref-0.30.0/src/maref/memory/memory_manager.py +457 -0
- maref-0.30.0/src/maref/monitoring/__init__.py +49 -0
- maref-0.30.0/src/maref/monitoring/safety_dashboard.py +122 -0
- maref-0.30.0/src/maref/monitoring/security_orchestrator.py +590 -0
- maref-0.30.0/src/maref/monitoring/threat_intelligence.py +490 -0
- maref-0.30.0/src/maref/obs/__init__.py +34 -0
- maref-0.30.0/src/maref/obs/aggregator.py +119 -0
- maref-0.30.0/src/maref/obs/client.py +242 -0
- maref-0.30.0/src/maref/obs/hasher.py +36 -0
- maref-0.30.0/src/maref/obs/levels.py +42 -0
- maref-0.30.0/src/maref/obs/oscillator_params.py +122 -0
- maref-0.30.0/src/maref/obs/pipeline.py +198 -0
- maref-0.30.0/src/maref/obs/py.typed +0 -0
- maref-0.30.0/src/maref/obs/schema.py +44 -0
- maref-0.30.0/src/maref/observability/__init__.py +48 -0
- maref-0.30.0/src/maref/observability/error_budget.py +164 -0
- maref-0.30.0/src/maref/observability/logging.py +115 -0
- maref-0.30.0/src/maref/observability/otel_middleware.py +222 -0
- maref-0.30.0/src/maref/observability/red_metrics.py +200 -0
- maref-0.30.0/src/maref/observability/trace_context.py +93 -0
- maref-0.30.0/src/maref/observation/__init__.py +31 -0
- maref-0.30.0/src/maref/observation/detector.py +175 -0
- maref-0.30.0/src/maref/observation/otel_bridge.py +356 -0
- maref-0.30.0/src/maref/observation/probes.py +212 -0
- maref-0.30.0/src/maref/observation/registry.py +70 -0
- maref-0.30.0/src/maref/observation/store.py +183 -0
- maref-0.30.0/src/maref/orchestration/__init__.py +33 -0
- maref-0.30.0/src/maref/orchestration/decomposer.py +102 -0
- maref-0.30.0/src/maref/orchestration/dispatcher.py +175 -0
- maref-0.30.0/src/maref/orchestration/joint_machine.py +126 -0
- maref-0.30.0/src/maref/orchestration/operational_validator.py +237 -0
- maref-0.30.0/src/maref/orchestration/plan_executor.py +368 -0
- maref-0.30.0/src/maref/orchestration/task_graph.py +292 -0
- maref-0.30.0/src/maref/performance.py +568 -0
- maref-0.30.0/src/maref/production/__init__.py +19 -0
- maref-0.30.0/src/maref/production/_constants.py +7 -0
- maref-0.30.0/src/maref/production/asset_scaffolder.py +95 -0
- maref-0.30.0/src/maref/production/character_factory.py +166 -0
- maref-0.30.0/src/maref/production/content_assembler.py +85 -0
- maref-0.30.0/src/maref/production/content_engine.py +97 -0
- maref-0.30.0/src/maref/production/hypothesis_validator.py +106 -0
- maref-0.30.0/src/maref/production/ip_cli.py +210 -0
- maref-0.30.0/src/maref/production/script_writer.py +219 -0
- maref-0.30.0/src/maref/production/templates/character_profile.md +38 -0
- maref-0.30.0/src/maref/production/templates/episode_script.md +44 -0
- maref-0.30.0/src/maref/protocols/__init__.py +33 -0
- maref-0.30.0/src/maref/protocols/protocol_bridge.py +491 -0
- maref-0.30.0/src/maref/py.typed +0 -0
- maref-0.30.0/src/maref/recursive/__init__.py +716 -0
- maref-0.30.0/src/maref/recursive/admission_testing.py +288 -0
- maref-0.30.0/src/maref/recursive/agent_24_state_machine.py +299 -0
- maref-0.30.0/src/maref/recursive/agent_credit_rating.py +334 -0
- maref-0.30.0/src/maref/recursive/agent_discovery_negotiation.py +238 -0
- maref-0.30.0/src/maref/recursive/agent_dispatcher.py +100 -0
- maref-0.30.0/src/maref/recursive/agent_economy.py +407 -0
- maref-0.30.0/src/maref/recursive/agent_handoff.py +329 -0
- maref-0.30.0/src/maref/recursive/agent_health.py +133 -0
- maref-0.30.0/src/maref/recursive/agent_marketplace.py +278 -0
- maref-0.30.0/src/maref/recursive/audit_schema.py +188 -0
- maref-0.30.0/src/maref/recursive/blast_radius.py +136 -0
- maref-0.30.0/src/maref/recursive/builtin_skills/code_security_audit.yaml +49 -0
- maref-0.30.0/src/maref/recursive/capability_contracts.py +667 -0
- maref-0.30.0/src/maref/recursive/carbon_silicon_symbiosis.py +363 -0
- maref-0.30.0/src/maref/recursive/chaos_injector.py +45 -0
- maref-0.30.0/src/maref/recursive/chaos_resilience.py +91 -0
- maref-0.30.0/src/maref/recursive/code_parser.py +80 -0
- maref-0.30.0/src/maref/recursive/complexity_budget.py +282 -0
- maref-0.30.0/src/maref/recursive/continuous_optimizer.py +327 -0
- maref-0.30.0/src/maref/recursive/convergence_dashboard.py +259 -0
- maref-0.30.0/src/maref/recursive/correlation_engine.py +362 -0
- maref-0.30.0/src/maref/recursive/cost_tracker.py +359 -0
- maref-0.30.0/src/maref/recursive/coverage_tracker.py +97 -0
- maref-0.30.0/src/maref/recursive/creative_generator.py +263 -0
- maref-0.30.0/src/maref/recursive/cross_system_adapter.py +308 -0
- maref-0.30.0/src/maref/recursive/dashboard_v3.py +142 -0
- maref-0.30.0/src/maref/recursive/decision_market.py +578 -0
- maref-0.30.0/src/maref/recursive/distributed_bft.py +368 -0
- maref-0.30.0/src/maref/recursive/distributed_crdt.py +244 -0
- maref-0.30.0/src/maref/recursive/eight_trigrams_governance.py +307 -0
- maref-0.30.0/src/maref/recursive/evolution_dsl.py +266 -0
- maref-0.30.0/src/maref/recursive/experience_pool.py +175 -0
- maref-0.30.0/src/maref/recursive/federation.py +117 -0
- maref-0.30.0/src/maref/recursive/formal_planner.py +418 -0
- maref-0.30.0/src/maref/recursive/four_phase_governance.py +383 -0
- maref-0.30.0/src/maref/recursive/hitl_v2.py +275 -0
- maref-0.30.0/src/maref/recursive/hook_chain.py +103 -0
- maref-0.30.0/src/maref/recursive/hook_registry.py +75 -0
- maref-0.30.0/src/maref/recursive/hook_templates.py +156 -0
- maref-0.30.0/src/maref/recursive/hook_topics.py +33 -0
- maref-0.30.0/src/maref/recursive/hybrid_decomposer.py +254 -0
- maref-0.30.0/src/maref/recursive/instance_cloner.py +362 -0
- maref-0.30.0/src/maref/recursive/integrity_baseline.py +122 -0
- maref-0.30.0/src/maref/recursive/internal_agents.py +117 -0
- maref-0.30.0/src/maref/recursive/joint_state_machine.py +124 -0
- maref-0.30.0/src/maref/recursive/live_migration.py +237 -0
- maref-0.30.0/src/maref/recursive/memory_three_temperature.py +374 -0
- maref-0.30.0/src/maref/recursive/meta_agent_closure.py +325 -0
- maref-0.30.0/src/maref/recursive/meta_governance.py +195 -0
- maref-0.30.0/src/maref/recursive/metacognition.py +186 -0
- maref-0.30.0/src/maref/recursive/observability.py +230 -0
- maref-0.30.0/src/maref/recursive/ontology_drift.py +328 -0
- maref-0.30.0/src/maref/recursive/orchestration_perf.py +194 -0
- maref-0.30.0/src/maref/recursive/otel_dashboard.py +45 -0
- maref-0.30.0/src/maref/recursive/permission_matrix.py +103 -0
- maref-0.30.0/src/maref/recursive/reliability_matrix.py +178 -0
- maref-0.30.0/src/maref/recursive/resilience_v2.py +219 -0
- maref-0.30.0/src/maref/recursive/role_composer.py +121 -0
- maref-0.30.0/src/maref/recursive/role_lifecycle.py +138 -0
- maref-0.30.0/src/maref/recursive/role_registry.py +138 -0
- maref-0.30.0/src/maref/recursive/rule_freeze_zone.py +232 -0
- maref-0.30.0/src/maref/recursive/runtime_kg.py +153 -0
- maref-0.30.0/src/maref/recursive/safety_gate_v2.py +302 -0
- maref-0.30.0/src/maref/recursive/saga_orchestrator.py +409 -0
- maref-0.30.0/src/maref/recursive/schema_aligner.py +261 -0
- maref-0.30.0/src/maref/recursive/self_architect.py +339 -0
- maref-0.30.0/src/maref/recursive/self_diagnostician.py +153 -0
- maref-0.30.0/src/maref/recursive/self_executor.py +714 -0
- maref-0.30.0/src/maref/recursive/self_healer.py +289 -0
- maref-0.30.0/src/maref/recursive/self_knowledge.py +173 -0
- maref-0.30.0/src/maref/recursive/self_observer.py +153 -0
- maref-0.30.0/src/maref/recursive/self_optimizer.py +196 -0
- maref-0.30.0/src/maref/recursive/self_orchestrator.py +179 -0
- maref-0.30.0/src/maref/recursive/self_version.py +182 -0
- maref-0.30.0/src/maref/recursive/signed_agent_cards.py +194 -0
- maref-0.30.0/src/maref/recursive/skill_executor.py +161 -0
- maref-0.30.0/src/maref/recursive/skill_loader.py +120 -0
- maref-0.30.0/src/maref/recursive/skill_schema.py +299 -0
- maref-0.30.0/src/maref/recursive/skill_trigger.py +59 -0
- maref-0.30.0/src/maref/recursive/stigmergy_swarm.py +262 -0
- maref-0.30.0/src/maref/recursive/task_decomposer.py +126 -0
- maref-0.30.0/src/maref/recursive/time_awareness.py +178 -0
- maref-0.30.0/src/maref/recursive/tla_replay.py +261 -0
- maref-0.30.0/src/maref/recursive/trust_engine_v2.py +415 -0
- maref-0.30.0/src/maref/recursive/trust_v2.py +154 -0
- maref-0.30.0/src/maref/recursive/unified_audit.py +131 -0
- maref-0.30.0/src/maref/recursive/zero_trust.py +262 -0
- maref-0.30.0/src/maref/redblue/__init__.py +20 -0
- maref-0.30.0/src/maref/redblue/attack_executor.py +137 -0
- maref-0.30.0/src/maref/redblue/attack_vector.py +225 -0
- maref-0.30.0/src/maref/redblue/red_blue_engine.py +262 -0
- maref-0.30.0/src/maref/security/__init__.py +10 -0
- maref-0.30.0/src/maref/security/agent_identity/__init__.py +349 -0
- maref-0.30.0/src/maref/security/behavior_monitor.py +215 -0
- maref-0.30.0/src/maref/security/byzantine_enhancer.py +174 -0
- maref-0.30.0/src/maref/security/decorators.py +51 -0
- maref-0.30.0/src/maref/security/keyring_store.py +117 -0
- maref-0.30.0/src/maref/security/message_security.py +131 -0
- maref-0.30.0/src/maref/security/sanitizer.py +129 -0
- maref-0.30.0/src/maref/security/security_proofs.py +459 -0
- maref-0.30.0/src/maref/security/state_monitor.py +157 -0
- maref-0.30.0/src/maref/security/trust_api.py +89 -0
- maref-0.30.0/src/maref/security/trust_boundary/__init__.py +240 -0
- maref-0.30.0/src/maref/security/trust_chain/__init__.py +183 -0
- maref-0.30.0/src/maref/security/trust_graph.py +191 -0
- maref-0.30.0/src/maref/security/trust_integration/__init__.py +392 -0
- maref-0.30.0/src/maref/security/trust_visualization.py +96 -0
- maref-0.30.0/src/maref/security/weighted_consensus.py +93 -0
- maref-0.30.0/src/maref/serverless_handler.py +60 -0
- maref-0.30.0/src/maref/stress/__init__.py +16 -0
- maref-0.30.0/src/maref/stress/chaos_engine.py +398 -0
- maref-0.30.0/src/maref/stress/distributed_harness.py +86 -0
- maref-0.30.0/src/maref/stress/emergence_harness.py +156 -0
- maref-0.30.0/src/maref/stress/real_faults.py +186 -0
- maref-0.30.0/src/maref/stress/real_latency.py +92 -0
- maref-0.30.0/src/maref/stress/resilience_tracker.py +80 -0
- maref-0.30.0/src/maref/stress/stability_test.py +233 -0
- maref-0.30.0/src/maref/stress/stress_harness.py +188 -0
- maref-0.30.0/src/maref/stress/stress_level.py +84 -0
- maref-0.30.0/src/maref/stress/stress_result.py +63 -0
- maref-0.30.0/src/maref/supply_chain/__init__.py +42 -0
- maref-0.30.0/src/maref/supply_chain/sbom_generator.py +1037 -0
- maref-0.30.0/src/maref/supply_chain/vulnerability_scanner.py +1073 -0
- maref-0.30.0/src/maref/testing/__init__.py +5 -0
- maref-0.30.0/src/maref/testing/mock_validator.py +43 -0
- maref-0.30.0/src/maref/tools/__init__.py +67 -0
- maref-0.30.0/src/maref/tools/browser_server.py +225 -0
- maref-0.30.0/src/maref/tools/email_server.py +318 -0
- maref-0.30.0/src/maref/tools/file_server.py +289 -0
- maref-0.30.0/src/maref/tools/git_server.py +281 -0
- maref-0.30.0/src/maref/tools/registry.py +154 -0
- maref-0.30.0/src/maref/tools/shell_server.py +186 -0
- maref-0.30.0/src/maref/tools/tool_schema.py +217 -0
- maref-0.30.0/src/maref/tools/web_search_server.py +265 -0
- maref-0.30.0/src/maref_lite/README.md +51 -0
- maref-0.30.0/src/maref_lite/__init__.py +1 -0
- maref-0.30.0/src/maref_lite/_constants.py +26 -0
- maref-0.30.0/src/maref_lite/cli.py +672 -0
- maref-0.30.0/src/maref_lite/governance.py +401 -0
- maref-0.30.0/src/maref_lite/keys_cli.py +130 -0
- maref-0.30.0/src/maref_lite/meta_learning.py +284 -0
- maref-0.30.0/src/maref_lite/obs_cli.py +129 -0
- maref-0.30.0/src/maref_lite/percv_cli.py +491 -0
- maref-0.30.0/src/maref_lite/policy.py +162 -0
- maref-0.30.0/src/maref_lite/py.typed +0 -0
- maref-0.30.0/src/maref_lite/recursive_governance.py +391 -0
- maref-0.30.0/src/maref_lite/state_machine.py +57 -0
- maref-0.30.0/src/research/autoresearch_loop.py +648 -0
- maref-0.30.0/src/research/autoresearch_phase10.py +462 -0
- maref-0.30.0/src/research/autoresearch_phase9.py +474 -0
- maref-0.30.0/src/research/chaos_engineering.py +366 -0
- maref-0.30.0/src/research/config.py +95 -0
- maref-0.30.0/src/research/continuous_engine.py +483 -0
- maref-0.30.0/src/research/dashscope_client.py +394 -0
- maref-0.30.0/src/research/discovery_engine.py +273 -0
- maref-0.30.0/src/research/experiment_registry.py +311 -0
- maref-0.30.0/src/research/fault_recovery.py +147 -0
- maref-0.30.0/src/research/finding_models.py +90 -0
- maref-0.30.0/src/research/knowledge_graph.py +10 -0
- maref-0.30.0/src/research/orchestrator.py +194 -0
- maref-0.30.0/src/research/py.typed +0 -0
- maref-0.30.0/src/research/vector_store.py +252 -0
- maref-0.30.0/telemetry-server/Dockerfile +12 -0
- maref-0.30.0/telemetry-server/aggregator.py +171 -0
- maref-0.30.0/telemetry-server/docker-compose.yml +17 -0
- maref-0.30.0/telemetry-server/main.py +199 -0
- maref-0.30.0/telemetry-server/requirements.txt +2 -0
- maref-0.30.0/test_integration_real.py +279 -0
- maref-0.30.0/test_phase1.py +77 -0
- maref-0.30.0/test_phase1_boundary.py +272 -0
- maref-0.30.0/test_phase2.py +184 -0
- maref-0.30.0/test_phase2_blast.py +113 -0
- maref-0.30.0/test_phase2_schema.py +148 -0
- maref-0.30.0/test_phase3_bft.py +89 -0
- maref-0.30.0/test_phase3_consistency.py +69 -0
- maref-0.30.0/test_phase3_emergence.py +87 -0
- maref-0.30.0/tests/__init__.py +0 -0
- maref-0.30.0/tests/benchmark/performance_benchmarks.py +177 -0
- maref-0.30.0/tests/benchmark/test_compliance_sidecar_benchmark.py +296 -0
- maref-0.30.0/tests/benchmark/test_hotpotqa.py +101 -0
- maref-0.30.0/tests/chaos/__init__.py +0 -0
- maref-0.30.0/tests/chaos/test_chaos_engine_scenarios.py +489 -0
- maref-0.30.0/tests/chaos/test_chaos_scenarios.py +373 -0
- maref-0.30.0/tests/chaos/test_desktop_chaos.py +457 -0
- maref-0.30.0/tests/chaos/test_disaster_recovery.py +395 -0
- maref-0.30.0/tests/chaos/test_incident_response.py +560 -0
- maref-0.30.0/tests/chaos/test_llm_chaos.py +315 -0
- maref-0.30.0/tests/chaos/test_recursive_chaos.py +64 -0
- maref-0.30.0/tests/cli/__init__.py +0 -0
- maref-0.30.0/tests/cli/test_cli_main.py +514 -0
- maref-0.30.0/tests/cli/test_cli_percv.py +39 -0
- maref-0.30.0/tests/cli/test_desktop_setup.py +62 -0
- maref-0.30.0/tests/cli/test_keys_cli.py +434 -0
- maref-0.30.0/tests/cli/test_percv_cli_unit.py +322 -0
- maref-0.30.0/tests/cli/test_r11_cli_entry.py +189 -0
- maref-0.30.0/tests/compliance/test_compliance_phase5.py +202 -0
- maref-0.30.0/tests/desktop/__init__.py +0 -0
- maref-0.30.0/tests/desktop/test_d10_integration_chaos.py +240 -0
- maref-0.30.0/tests/desktop/test_d1_environment.py +564 -0
- maref-0.30.0/tests/desktop/test_d2_modules.py +299 -0
- maref-0.30.0/tests/desktop/test_d3_verification_clipboard.py +298 -0
- maref-0.30.0/tests/desktop/test_d5_integration.py +315 -0
- maref-0.30.0/tests/desktop/test_d6_d9_m2_security.py +438 -0
- maref-0.30.0/tests/desktop/test_e1_e7_modules.py +686 -0
- maref-0.30.0/tests/desktop/test_e2e_desktop_loop.py +371 -0
- maref-0.30.0/tests/desktop/test_e2e_real.py +372 -0
- maref-0.30.0/tests/desktop/test_governance_dashboard.py +129 -0
- maref-0.30.0/tests/desktop/test_input_safety.py +200 -0
- maref-0.30.0/tests/desktop/test_mobile_bridge_real.py +454 -0
- maref-0.30.0/tests/desktop/test_operation_history.py +147 -0
- maref-0.30.0/tests/desktop/test_policy_decision_tree.py +171 -0
- maref-0.30.0/tests/desktop/test_r103_r105_diag_tasks_parser.py +151 -0
- maref-0.30.0/tests/desktop/test_r106_r110_opencua_workflows_chaos.py +206 -0
- maref-0.30.0/tests/desktop/test_real_integration.py +416 -0
- maref-0.30.0/tests/desktop/test_screen_parser_real.py +76 -0
- maref-0.30.0/tests/e2e/test_web_research.py +170 -0
- maref-0.30.0/tests/evolution/__init__.py +0 -0
- maref-0.30.0/tests/evolution/test_c3_convergence.py +875 -0
- maref-0.30.0/tests/evolution/test_cycle_acceptance.py +221 -0
- maref-0.30.0/tests/evolution/test_engine.py +293 -0
- maref-0.30.0/tests/evolution/test_engine_quality_gate_integration.py +51 -0
- maref-0.30.0/tests/evolution/test_r21_main.py +205 -0
- maref-0.30.0/tests/evolution/test_r24_engine_coverage.py +283 -0
- maref-0.30.0/tests/executor/test_api.py +320 -0
- maref-0.30.0/tests/executor/test_checkpointer.py +454 -0
- maref-0.30.0/tests/executor/test_notifications.py +219 -0
- maref-0.30.0/tests/executor/test_queue.py +373 -0
- maref-0.30.0/tests/executor/test_scheduler.py +573 -0
- maref-0.30.0/tests/executor/test_session.py +463 -0
- maref-0.30.0/tests/executor/test_types.py +132 -0
- maref-0.30.0/tests/executor/test_worker.py +583 -0
- maref-0.30.0/tests/feature_dev/__init__.py +0 -0
- maref-0.30.0/tests/feature_dev/conftest.py +166 -0
- maref-0.30.0/tests/feature_dev/test_content_producer.py +129 -0
- maref-0.30.0/tests/feature_dev/test_content_scorer.py +152 -0
- maref-0.30.0/tests/feature_dev/test_doc_ingestor.py +311 -0
- maref-0.30.0/tests/feature_dev/test_feature_cycle.py +229 -0
- maref-0.30.0/tests/feature_dev/test_llm_client.py +181 -0
- maref-0.30.0/tests/feature_dev/test_progress_tracker.py +164 -0
- maref-0.30.0/tests/feature_dev/test_task_generator.py +84 -0
- maref-0.30.0/tests/feature_dev/test_verification_engine.py +227 -0
- maref-0.30.0/tests/features/__init__.py +0 -0
- maref-0.30.0/tests/features/test_feature_flags.py +200 -0
- maref-0.30.0/tests/formal/__init__.py +0 -0
- maref-0.30.0/tests/formal/conftest.py +203 -0
- maref-0.30.0/tests/formal/test_validator.py +160 -0
- maref-0.30.0/tests/governance/test_audit_logger.py +216 -0
- maref-0.30.0/tests/governance/test_circuit_breaker.py +116 -0
- maref-0.30.0/tests/governance/test_constants.py +93 -0
- maref-0.30.0/tests/governance/test_db.py +156 -0
- maref-0.30.0/tests/governance/test_percv_hooks.py +82 -0
- maref-0.30.0/tests/governance/test_r21_oscillation.py +204 -0
- maref-0.30.0/tests/governance/test_r27_state_machine.py +120 -0
- maref-0.30.0/tests/governance/test_state_machine.py +147 -0
- maref-0.30.0/tests/governance/test_threat_bridge.py +177 -0
- maref-0.30.0/tests/governance/test_trust_bridge.py +153 -0
- maref-0.30.0/tests/human/__init__.py +0 -0
- maref-0.30.0/tests/human/test_decision_api.py +147 -0
- maref-0.30.0/tests/human/test_interrupt_protocol.py +106 -0
- maref-0.30.0/tests/human/test_rule_engine.py +147 -0
- maref-0.30.0/tests/integration/__init__.py +0 -0
- maref-0.30.0/tests/integration/percv/__init__.py +0 -0
- maref-0.30.0/tests/integration/percv/test_card_bridge.py +119 -0
- maref-0.30.0/tests/integration/percv/test_cost_monitor.py +122 -0
- maref-0.30.0/tests/integration/percv/test_e2e_closed_loop.py +154 -0
- maref-0.30.0/tests/integration/percv/test_feedback_loop.py +140 -0
- maref-0.30.0/tests/integration/percv/test_gateway_adapter.py +182 -0
- maref-0.30.0/tests/integration/percv/test_orchestrator.py +130 -0
- maref-0.30.0/tests/integration/percv/test_pipeline_adapter.py +134 -0
- maref-0.30.0/tests/integration/percv/test_ratchet_bridge.py +97 -0
- maref-0.30.0/tests/integration/percv/test_verification_bridge.py +183 -0
- maref-0.30.0/tests/integration/test_a2a_integration.py +175 -0
- maref-0.30.0/tests/integration/test_a2a_secure_transport.py +189 -0
- maref-0.30.0/tests/integration/test_cross_framework.py +88 -0
- maref-0.30.0/tests/integration/test_ecosystem_closed_loop.py +166 -0
- maref-0.30.0/tests/integration/test_ecosystem_interop.py +225 -0
- maref-0.30.0/tests/integration/test_governance_flow.py +341 -0
- maref-0.30.0/tests/integration/test_hitl_api.py +216 -0
- maref-0.30.0/tests/integration/test_mcp_governance.py +1278 -0
- maref-0.30.0/tests/integration/test_mcp_security_middleware.py +261 -0
- maref-0.30.0/tests/integration/test_mcp_server.py +225 -0
- maref-0.30.0/tests/integration/test_orchestration_e2e.py +287 -0
- maref-0.30.0/tests/integration/test_orchestration_hitl_integration.py +211 -0
- maref-0.30.0/tests/integration/test_phase6_integration.py +276 -0
- maref-0.30.0/tests/integration/test_platform/test_integration.py +526 -0
- maref-0.30.0/tests/integration/test_protocol_bridge.py +153 -0
- maref-0.30.0/tests/knowledge/test_r21_relations.py +238 -0
- maref-0.30.0/tests/knowledge/test_r25_graph_coverage.py +279 -0
- maref-0.30.0/tests/life_state/__init__.py +0 -0
- maref-0.30.0/tests/life_state/test_federation.py +111 -0
- maref-0.30.0/tests/life_state/test_health.py +173 -0
- maref-0.30.0/tests/life_state/test_integration.py +193 -0
- maref-0.30.0/tests/life_state/test_lifecycle.py +119 -0
- maref-0.30.0/tests/life_state/test_messaging.py +154 -0
- maref-0.30.0/tests/life_state/test_metadata.py +156 -0
- maref-0.30.0/tests/life_state/test_registry.py +153 -0
- maref-0.30.0/tests/life_state/test_resources.py +130 -0
- maref-0.30.0/tests/life_state/test_sandbox.py +109 -0
- maref-0.30.0/tests/life_state/test_state_machine.py +152 -0
- maref-0.30.0/tests/maref/obs/__init__.py +0 -0
- maref-0.30.0/tests/maref/obs/test_aggregator.py +70 -0
- maref-0.30.0/tests/maref/obs/test_bridge.py +79 -0
- maref-0.30.0/tests/maref/obs/test_client.py +169 -0
- maref-0.30.0/tests/maref/obs/test_hasher.py +42 -0
- maref-0.30.0/tests/maref/obs/test_integration.py +172 -0
- maref-0.30.0/tests/maref/obs/test_levels.py +52 -0
- maref-0.30.0/tests/maref/obs/test_oscillator_params.py +90 -0
- maref-0.30.0/tests/maref/obs/test_pipeline.py +131 -0
- maref-0.30.0/tests/maref/obs/test_server_aggregator.py +169 -0
- maref-0.30.0/tests/marketplace/test_marketplace.py +227 -0
- maref-0.30.0/tests/memory/test_memory_manager.py +230 -0
- maref-0.30.0/tests/monitoring/test_safety_dashboard.py +114 -0
- maref-0.30.0/tests/observability/test_error_budget.py +261 -0
- maref-0.30.0/tests/observability/test_phase_observability.py +145 -0
- maref-0.30.0/tests/observation/test_r26_registry.py +148 -0
- maref-0.30.0/tests/recursive/__init__.py +0 -0
- maref-0.30.0/tests/recursive/test_r10_evolution.py +204 -0
- maref-0.30.0/tests/recursive/test_r11_governance_coverage.py +327 -0
- maref-0.30.0/tests/recursive/test_r12_audit.py +423 -0
- maref-0.30.0/tests/recursive/test_r13_observability.py +327 -0
- maref-0.30.0/tests/recursive/test_r14_r17.py +314 -0
- maref-0.30.0/tests/recursive/test_r18_r20.py +329 -0
- maref-0.30.0/tests/recursive/test_r1_self_observer.py +85 -0
- maref-0.30.0/tests/recursive/test_r22_experience_decay.py +147 -0
- maref-0.30.0/tests/recursive/test_r22_sampling.py +150 -0
- maref-0.30.0/tests/recursive/test_r28_audit_coverage.py +148 -0
- maref-0.30.0/tests/recursive/test_r29_edge_cases.py +107 -0
- maref-0.30.0/tests/recursive/test_r2_diagnosis.py +129 -0
- maref-0.30.0/tests/recursive/test_r31_self_executor.py +635 -0
- maref-0.30.0/tests/recursive/test_r32_correlation_engine.py +235 -0
- maref-0.30.0/tests/recursive/test_r33_complexity_budget.py +173 -0
- maref-0.30.0/tests/recursive/test_r34_continuous_optimizer.py +287 -0
- maref-0.30.0/tests/recursive/test_r35_live_migration.py +181 -0
- maref-0.30.0/tests/recursive/test_r36_signed_agent_cards.py +194 -0
- maref-0.30.0/tests/recursive/test_r3_healing.py +192 -0
- maref-0.30.0/tests/recursive/test_r40_full_pipeline.py +135 -0
- maref-0.30.0/tests/recursive/test_r41_hybrid_decomposer.py +450 -0
- maref-0.30.0/tests/recursive/test_r41_memory_three_temp.py +225 -0
- maref-0.30.0/tests/recursive/test_r42_hybrid_integration.py +188 -0
- maref-0.30.0/tests/recursive/test_r42_trust_engine_v2.py +184 -0
- maref-0.30.0/tests/recursive/test_r43_24_state_machine.py +97 -0
- maref-0.30.0/tests/recursive/test_r43_agent_handoff.py +366 -0
- maref-0.30.0/tests/recursive/test_r44_discovery_negotiation.py +128 -0
- maref-0.30.0/tests/recursive/test_r44_handoff_integration.py +240 -0
- maref-0.30.0/tests/recursive/test_r45_agent_economy.py +146 -0
- maref-0.30.0/tests/recursive/test_r45_agent_marketplace.py +259 -0
- maref-0.30.0/tests/recursive/test_r46_distributed_crdt.py +90 -0
- maref-0.30.0/tests/recursive/test_r46_safety_gate_v2_ext.py +185 -0
- maref-0.30.0/tests/recursive/test_r47_orchestration_perf.py +203 -0
- maref-0.30.0/tests/recursive/test_r47_stigmergy_swarm.py +89 -0
- maref-0.30.0/tests/recursive/test_r48_dashboard_v3.py +54 -0
- maref-0.30.0/tests/recursive/test_r4_optimization.py +189 -0
- maref-0.30.0/tests/recursive/test_r50_acceptance.py +181 -0
- maref-0.30.0/tests/recursive/test_r51_four_phase_governance.py +293 -0
- maref-0.30.0/tests/recursive/test_r52_agent_credit_rating.py +253 -0
- maref-0.30.0/tests/recursive/test_r53_instance_cloner.py +248 -0
- maref-0.30.0/tests/recursive/test_r54_cross_system_adapter.py +212 -0
- maref-0.30.0/tests/recursive/test_r55_creative_generator.py +205 -0
- maref-0.30.0/tests/recursive/test_r56_meta_agent_closure.py +200 -0
- maref-0.30.0/tests/recursive/test_r57_carbon_silicon.py +262 -0
- maref-0.30.0/tests/recursive/test_r58_eight_trigrams.py +206 -0
- maref-0.30.0/tests/recursive/test_r59_distributed_bft.py +291 -0
- maref-0.30.0/tests/recursive/test_r5_meta.py +156 -0
- maref-0.30.0/tests/recursive/test_r60_ultimate_life_validation.py +296 -0
- maref-0.30.0/tests/recursive/test_r61_skill_schema_loader.py +352 -0
- maref-0.30.0/tests/recursive/test_r62_skill_trigger_executor.py +260 -0
- maref-0.30.0/tests/recursive/test_r63_r64_mcp.py +440 -0
- maref-0.30.0/tests/recursive/test_r65_r66_hooks.py +255 -0
- maref-0.30.0/tests/recursive/test_r67_coverage_tracker.py +74 -0
- maref-0.30.0/tests/recursive/test_r67_r68_roles.py +370 -0
- maref-0.30.0/tests/recursive/test_r69_audit_integrity.py +362 -0
- maref-0.30.0/tests/recursive/test_r6_orchestration.py +263 -0
- maref-0.30.0/tests/recursive/test_r70_operational.py +125 -0
- maref-0.30.0/tests/recursive/test_r71_capability_contracts.py +497 -0
- maref-0.30.0/tests/recursive/test_r72_saga_orchestrator.py +389 -0
- maref-0.30.0/tests/recursive/test_r73_formal_planner.py +339 -0
- maref-0.30.0/tests/recursive/test_r74_zero_trust.py +200 -0
- maref-0.30.0/tests/recursive/test_r75_cost_tracker.py +170 -0
- maref-0.30.0/tests/recursive/test_r76_admission_testing.py +162 -0
- maref-0.30.0/tests/recursive/test_r77_time_awareness.py +204 -0
- maref-0.30.0/tests/recursive/test_r78_metacognition.py +149 -0
- maref-0.30.0/tests/recursive/test_r79_ontology_drift.py +149 -0
- maref-0.30.0/tests/recursive/test_r7_kg.py +159 -0
- maref-0.30.0/tests/recursive/test_r80_hitl_v2.py +150 -0
- maref-0.30.0/tests/redblue/__init__.py +0 -0
- maref-0.30.0/tests/redblue/test_rb_engine.py +218 -0
- maref-0.30.0/tests/research/__init__.py +0 -0
- maref-0.30.0/tests/research/test_vector_store.py +198 -0
- maref-0.30.0/tests/security/penetration_test.py +305 -0
- maref-0.30.0/tests/security/test_atp_adapter.py +203 -0
- maref-0.30.0/tests/security/test_distributed_trust.py +368 -0
- maref-0.30.0/tests/security/test_m2_threat_defense.py +239 -0
- maref-0.30.0/tests/security/test_mcp_security_enhanced.py +145 -0
- maref-0.30.0/tests/security/test_trust_boundary.py +164 -0
- maref-0.30.0/tests/security/test_trust_chain.py +159 -0
- maref-0.30.0/tests/security/test_trust_integration.py +447 -0
- maref-0.30.0/tests/stress/__init__.py +0 -0
- maref-0.30.0/tests/stress/test_full_pipeline.py +444 -0
- maref-0.30.0/tests/stress/test_s1_s60_real_stress.py +157 -0
- maref-0.30.0/tests/stress/test_security_audit.py +416 -0
- maref-0.30.0/tests/test_aia_adapter.py +101 -0
- maref-0.30.0/tests/test_chaos/test_chaos_engine.py +201 -0
- maref-0.30.0/tests/test_chaos/test_stability.py +170 -0
- maref-0.30.0/tests/test_compliance_phase2.py +361 -0
- maref-0.30.0/tests/test_cross_validator.py +304 -0
- maref-0.30.0/tests/test_crypto.py +87 -0
- maref-0.30.0/tests/test_data_sovereignty.py +335 -0
- maref-0.30.0/tests/test_e2e_executor.py +412 -0
- maref-0.30.0/tests/test_eivl_wasm.py +234 -0
- maref-0.30.0/tests/test_merkle_auditor.py +345 -0
- maref-0.30.0/tests/test_meta_learning.py +288 -0
- maref-0.30.0/tests/test_monitoring.py +243 -0
- maref-0.30.0/tests/test_phase3.py +468 -0
- maref-0.30.0/tests/test_policy_sandbox.py +275 -0
- maref-0.30.0/tests/test_protocol_bridge.py +306 -0
- maref-0.30.0/tests/test_sm2_keygen.py +51 -0
- maref-0.30.0/tests/test_sm4_gcm.py +67 -0
- maref-0.30.0/tests/test_supply_chain.py +769 -0
- maref-0.30.0/tests/testing/__init__.py +0 -0
- maref-0.30.0/tests/testing/test_mock_validator.py +55 -0
- maref-0.30.0/tests/tools/__init__.py +0 -0
- maref-0.30.0/tests/tools/test_browser_server.py +363 -0
- maref-0.30.0/tests/tools/test_email_server.py +748 -0
- maref-0.30.0/tests/tools/test_file_server.py +474 -0
- maref-0.30.0/tests/tools/test_git_server.py +424 -0
- maref-0.30.0/tests/tools/test_registry.py +167 -0
- maref-0.30.0/tests/tools/test_shell_server.py +339 -0
- maref-0.30.0/tests/unit/__init__.py +0 -0
- maref-0.30.0/tests/unit/test_a2a_bridge.py +338 -0
- maref-0.30.0/tests/unit/test_config.py +41 -0
- maref-0.30.0/tests/unit/test_cycles_2_5_platform_intelligence.py +215 -0
- maref-0.30.0/tests/unit/test_decision_market.py +681 -0
- maref-0.30.0/tests/unit/test_decomposer.py +100 -0
- maref-0.30.0/tests/unit/test_dispatcher.py +63 -0
- maref-0.30.0/tests/unit/test_drift_guard.py +333 -0
- maref-0.30.0/tests/unit/test_gaas.py +328 -0
- maref-0.30.0/tests/unit/test_gray_code_validator.py +117 -0
- maref-0.30.0/tests/unit/test_hypothesis_cycle.py +133 -0
- maref-0.30.0/tests/unit/test_identity.py +229 -0
- maref-0.30.0/tests/unit/test_integration_bridges.py +461 -0
- maref-0.30.0/tests/unit/test_joint_machine.py +83 -0
- maref-0.30.0/tests/unit/test_knowledge_graph.py +216 -0
- maref-0.30.0/tests/unit/test_maref_lite.py +240 -0
- maref-0.30.0/tests/unit/test_meta_learning_m5.py +597 -0
- maref-0.30.0/tests/unit/test_observation.py +287 -0
- maref-0.30.0/tests/unit/test_otel_bridge.py +142 -0
- maref-0.30.0/tests/unit/test_plan_executor.py +245 -0
- maref-0.30.0/tests/unit/test_production.py +383 -0
- maref-0.30.0/tests/unit/test_r38_sidecar_jsonrpc.py +265 -0
- maref-0.30.0/tests/unit/test_rule_freeze_zone.py +292 -0
- maref-0.30.0/tests/unit/test_sidecar.py +260 -0
- maref-0.30.0/tests/unit/test_sidecar_mcp_bridge.py +254 -0
- maref-0.30.0/tests/unit/test_sidecar_server.py +103 -0
- maref-0.30.0/tests/unit/test_sidecar_server_extended.py +354 -0
- maref-0.30.0/tests/unit/test_task_graph.py +168 -0
- maref-0.30.0/tests/unit/test_tool_schema.py +182 -0
- maref-0.30.0/tests/unit/test_trust_engine.py +182 -0
- maref-0.30.0/uv.lock +4458 -0
- maref-0.30.0/vault/forecasts/F-20260511-001.yaml +84 -0
- maref-0.30.0/vault/kdps/K-20260511-001.yaml +50 -0
- maref-0.30.0/vault/kdps/K-20260511-002.yaml +55 -0
- maref-0.30.0/vault/kdps/K-20260511-003.yaml +53 -0
- maref-0.30.0/vault/kdps/K-20260511-004.yaml +49 -0
- maref-0.30.0/vault/kdps/K-20260511-005.yaml +47 -0
- maref-0.30.0/vault/kdps/K-20260511-006.yaml +58 -0
- maref-0.30.0/vault/kdps/K-20260511-007.yaml +62 -0
- maref-0.30.0/vault/kdps/K-20260511-008.yaml +56 -0
- maref-0.30.0/vault/kdps/K-20260511-009.yaml +53 -0
- maref-0.30.0/vault/kdps/K-20260518-001.yaml +74 -0
- maref-0.30.0/vault/kdps/K-20260518-002.yaml +79 -0
- maref-0.30.0/vault/kdps/K-20260518-003.yaml +119 -0
- maref-0.30.0/vault/kdps/K-20260518-004.yaml +162 -0
- maref-0.30.0/vault/patterns/PAT-MAREF competitive positioning and adoption-001.yaml +44 -0
- maref-0.30.0/vault/program.md +51 -0
- maref-0.30.0/vault/results.tsv +1 -0
- maref-0.30.0/vault/signals/S-20260511-001.yaml +15 -0
- maref-0.30.0/vault/signals/S-20260511-002.yaml +15 -0
- maref-0.30.0/vault/signals/S-20260511-003.yaml +14 -0
- maref-0.30.0/vault/signals/S-20260511-004.yaml +15 -0
- maref-0.30.0/vault/signals/S-20260511-005.yaml +14 -0
- maref-0.30.0/vault/signals/S-20260511-006.yaml +15 -0
- maref-0.30.0/vault/signals/S-20260511-007.yaml +15 -0
- maref-0.30.0/vault/signals/S-20260511-008.yaml +15 -0
- maref-0.30.0/vault/signals/S-20260511-009.yaml +15 -0
- maref-0.30.0/vault/signals/S-20260511-010.yaml +17 -0
- maref-0.30.0/vault/signals/S-20260511-011.yaml +16 -0
- maref-0.30.0/vault/signals/S-20260511-012.yaml +16 -0
- maref-0.30.0/vault/signals/S-20260516-001.yaml +30 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -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
|