Configuration & Tips
Configuration & Tips
Section titled “Configuration & Tips”Default run
Section titled “Default run”arxo analyze --fail-fast# Or with a config filearxo analyze --config .arxo.ci.yaml --fail-fastCustom config
Section titled “Custom config”Create .arxo.ci.yaml to tune metrics and policy:
metrics: - id: agent_architecture - id: openclaw_architecture
policy: invariants: - metric: agent_architecture.overall_agent_health op: ">=" value: 0.7 message: "Agent architecture health below threshold" - metric: agent_architecture.safety_protocol_score op: ">=" value: 80 message: "Safety protocol score too low"Use in CI:
arxo analyze --config .arxo.ci.yamlSee Agent Architecture scoring and keys and Policy and CI Gates.
Performance
Section titled “Performance”Cache analysis results
Section titled “Cache analysis results”# GitHub Actions- uses: actions/cache@v3 with: path: ~/.cache/arxo key: arxo-${{ hashFiles('**/*.ts') }}Exclude unnecessary files
Section titled “Exclude unnecessary files”data: import_graph: exclude: - "**/node_modules/**" - "**/dist/**" - "**/test/**"Notifications
Section titled “Notifications”#!/bin/bashSTATUS=$(arxo analyze --format json --output report.json && echo "success" || echo "failure")if [ "$STATUS" = "failure" ]; then VIOLATIONS=$(jq '.violations | length' report.json) curl -X POST -H 'Content-type: application/json' \ --data "{\"text\":\"❌ Architecture violations: $VIOLATIONS\"}" \ $SLACK_WEBHOOK_URLfiMicrosoft Teams
Section titled “Microsoft Teams”if ! arxo analyze; then curl -H 'Content-Type: application/json' \ -d '{ "@type": "MessageCard", "title": "Architecture Violations", "text": "CI build failed due to architecture violations" }' \ $TEAMS_WEBHOOK_URLfiNext steps
Section titled “Next steps”- CI/CD Integration — Overview
- Configuration — Full config reference