From b2710364c6302c2cd576109423edcc57d13277dc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 05:57:10 +0000 Subject: [PATCH 1/3] Initial plan From f6219728d2bc95cc8e5e0089efd3283f9bbbdd58 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 06:10:42 +0000 Subject: [PATCH 2/3] Fix metrics-collector storage path to use meta-orchestrators subdirectory Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com> --- .github/workflows/metrics-collector.lock.yml | 12 ++++++------ .github/workflows/metrics-collector.md | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/metrics-collector.lock.yml b/.github/workflows/metrics-collector.lock.yml index 1bbe9d70660..1b45dd43b7f 100644 --- a/.github/workflows/metrics-collector.lock.yml +++ b/.github/workflows/metrics-collector.lock.yml @@ -339,7 +339,7 @@ jobs: - **Repository**: __GH_AW_GITHUB_REPOSITORY__ - **Collection Date**: $(date +%Y-%m-%d) - **Collection Time**: $(date +%H:%M:%S) UTC - - **Storage Path**: `/tmp/gh-aw/repo-memory-default/memory/default/metrics/` + - **Storage Path**: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/` ## Metrics Collection Process @@ -432,15 +432,15 @@ jobs: ### 3. Store Metrics in Repo Memory **Daily Storage**: - - Write metrics to: `/tmp/gh-aw/repo-memory-default/memory/default/metrics/daily/YYYY-MM-DD.json` + - Write metrics to: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/YYYY-MM-DD.json` - Use today's date for the filename (e.g., `2024-12-24.json`) **Latest Snapshot**: - - Copy current metrics to: `/tmp/gh-aw/repo-memory-default/memory/default/metrics/latest.json` + - Copy current metrics to: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/latest.json` - This provides quick access to most recent data without date calculations **Create Directory Structure**: - - Ensure the directory exists: `mkdir -p /tmp/gh-aw/repo-memory-default/memory/default/metrics/daily/` + - Ensure the directory exists: `mkdir -p /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/` ### 4. Cleanup Old Data @@ -451,7 +451,7 @@ jobs: **Cleanup Command**: ```bash - find /tmp/gh-aw/repo-memory-default/memory/default/metrics/daily/ -name "*.json" -mtime +30 -delete + find /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/ -name "*.json" -mtime +30 -delete ``` ### 5. Calculate Ecosystem Aggregates @@ -523,7 +523,7 @@ jobs: - Active workflows: 85 - Total safe outputs: 45 - Overall success rate: 89.2% - - Storage: /tmp/gh-aw/repo-memory-default/memory/default/metrics/daily/2024-12-24.json + - Storage: /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/2024-12-24.json ⏱️ Collection took: 45 seconds ``` diff --git a/.github/workflows/metrics-collector.md b/.github/workflows/metrics-collector.md index ad99a6e0741..a9d340402c7 100644 --- a/.github/workflows/metrics-collector.md +++ b/.github/workflows/metrics-collector.md @@ -38,7 +38,7 @@ As an infrastructure agent, you collect and persist performance data that enable - **Repository**: ${{ github.repository }} - **Collection Date**: $(date +%Y-%m-%d) - **Collection Time**: $(date +%H:%M:%S) UTC -- **Storage Path**: `/tmp/gh-aw/repo-memory-default/memory/default/metrics/` +- **Storage Path**: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/` ## Metrics Collection Process @@ -131,15 +131,15 @@ Create a JSON object following this schema: ### 3. Store Metrics in Repo Memory **Daily Storage**: -- Write metrics to: `/tmp/gh-aw/repo-memory-default/memory/default/metrics/daily/YYYY-MM-DD.json` +- Write metrics to: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/YYYY-MM-DD.json` - Use today's date for the filename (e.g., `2024-12-24.json`) **Latest Snapshot**: -- Copy current metrics to: `/tmp/gh-aw/repo-memory-default/memory/default/metrics/latest.json` +- Copy current metrics to: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/latest.json` - This provides quick access to most recent data without date calculations **Create Directory Structure**: -- Ensure the directory exists: `mkdir -p /tmp/gh-aw/repo-memory-default/memory/default/metrics/daily/` +- Ensure the directory exists: `mkdir -p /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/` ### 4. Cleanup Old Data @@ -150,7 +150,7 @@ Create a JSON object following this schema: **Cleanup Command**: ```bash -find /tmp/gh-aw/repo-memory-default/memory/default/metrics/daily/ -name "*.json" -mtime +30 -delete +find /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/ -name "*.json" -mtime +30 -delete ``` ### 5. Calculate Ecosystem Aggregates @@ -222,7 +222,7 @@ At the end of collection: - Active workflows: 85 - Total safe outputs: 45 - Overall success rate: 89.2% - - Storage: /tmp/gh-aw/repo-memory-default/memory/default/metrics/daily/2024-12-24.json + - Storage: /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/2024-12-24.json ⏱️ Collection took: 45 seconds ``` From a031c3dccda00d5344e94086ff477f184b19e229 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 09:54:51 +0000 Subject: [PATCH 3/3] Update repo-memory paths to new format: /tmp/gh-aw/repo-memory/{id}/ Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .../workflows/agent-performance-analyzer.lock.yml | 14 +++++++------- .github/workflows/agent-performance-analyzer.md | 10 +++++----- .github/workflows/metrics-collector.lock.yml | 12 ++++++------ .github/workflows/metrics-collector.md | 12 ++++++------ 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/agent-performance-analyzer.lock.yml b/.github/workflows/agent-performance-analyzer.lock.yml index ddb5c691852..5f09a44f2b6 100644 --- a/.github/workflows/agent-performance-analyzer.lock.yml +++ b/.github/workflows/agent-performance-analyzer.lock.yml @@ -779,7 +779,7 @@ jobs: ## Shared Memory Integration - **Access shared repo memory at `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/`** + **Access shared repo memory at `/tmp/gh-aw/repo-memory/default/`** This workflow shares memory with other meta-orchestrators (Campaign Manager and Workflow Health Manager) to coordinate insights and avoid duplicate work. @@ -787,12 +787,12 @@ jobs: The Metrics Collector workflow runs daily and stores performance metrics in a structured JSON format: - 1. **Latest Metrics**: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/latest.json` + 1. **Latest Metrics**: `/tmp/gh-aw/repo-memory/default/metrics/latest.json` - Most recent daily metrics snapshot - Quick access without date calculations - Contains all workflow metrics, engagement data, and quality indicators - 2. **Historical Metrics**: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/YYYY-MM-DD.json` + 2. **Historical Metrics**: `/tmp/gh-aw/repo-memory/default/metrics/daily/YYYY-MM-DD.json` - Daily metrics for the last 30 days - Enables trend analysis and historical comparisons - Calculate week-over-week and month-over-month changes @@ -841,8 +841,8 @@ jobs: ### Phase 1: Data Collection (10 minutes) 1. **Load historical metrics from shared storage:** - - Read latest metrics from: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/latest.json` - - Load daily metrics for trend analysis from: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/` + - Read latest metrics from: `/tmp/gh-aw/repo-memory/default/metrics/latest.json` + - Load daily metrics for trend analysis from: `/tmp/gh-aw/repo-memory/default/metrics/daily/` - Extract per-workflow metrics: - Safe output counts (issues, PRs, comments, discussions) - Workflow run statistics (total, successful, failed, success_rate) @@ -1109,14 +1109,14 @@ jobs: ## Trends - Overall agent quality: XX/100 (↑ +5 from last week) + - Average effectiveness: XX/100 (→ stable) + - Output volume: XXX outputs (↑ +10% from last week) PROMPT_EOF - name: Append prompt (part 2) env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt run: | cat << 'PROMPT_EOF' >> "$GH_AW_PROMPT" - - Average effectiveness: XX/100 (→ stable) - - Output volume: XXX outputs (↑ +10% from last week) - PR merge rate: XX% (↑ +3% from last week) - Resource efficiency: XX min average (↓ -2 min from last week) diff --git a/.github/workflows/agent-performance-analyzer.md b/.github/workflows/agent-performance-analyzer.md index 14bcec30fcd..6a40776e50f 100644 --- a/.github/workflows/agent-performance-analyzer.md +++ b/.github/workflows/agent-performance-analyzer.md @@ -166,7 +166,7 @@ Execute these phases each run: ## Shared Memory Integration -**Access shared repo memory at `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/`** +**Access shared repo memory at `/tmp/gh-aw/repo-memory/default/`** This workflow shares memory with other meta-orchestrators (Campaign Manager and Workflow Health Manager) to coordinate insights and avoid duplicate work. @@ -174,12 +174,12 @@ This workflow shares memory with other meta-orchestrators (Campaign Manager and The Metrics Collector workflow runs daily and stores performance metrics in a structured JSON format: -1. **Latest Metrics**: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/latest.json` +1. **Latest Metrics**: `/tmp/gh-aw/repo-memory/default/metrics/latest.json` - Most recent daily metrics snapshot - Quick access without date calculations - Contains all workflow metrics, engagement data, and quality indicators -2. **Historical Metrics**: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/YYYY-MM-DD.json` +2. **Historical Metrics**: `/tmp/gh-aw/repo-memory/default/metrics/daily/YYYY-MM-DD.json` - Daily metrics for the last 30 days - Enables trend analysis and historical comparisons - Calculate week-over-week and month-over-month changes @@ -228,8 +228,8 @@ The Metrics Collector workflow runs daily and stores performance metrics in a st ### Phase 1: Data Collection (10 minutes) 1. **Load historical metrics from shared storage:** - - Read latest metrics from: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/latest.json` - - Load daily metrics for trend analysis from: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/` + - Read latest metrics from: `/tmp/gh-aw/repo-memory/default/metrics/latest.json` + - Load daily metrics for trend analysis from: `/tmp/gh-aw/repo-memory/default/metrics/daily/` - Extract per-workflow metrics: - Safe output counts (issues, PRs, comments, discussions) - Workflow run statistics (total, successful, failed, success_rate) diff --git a/.github/workflows/metrics-collector.lock.yml b/.github/workflows/metrics-collector.lock.yml index 1b45dd43b7f..b172d936ea9 100644 --- a/.github/workflows/metrics-collector.lock.yml +++ b/.github/workflows/metrics-collector.lock.yml @@ -339,7 +339,7 @@ jobs: - **Repository**: __GH_AW_GITHUB_REPOSITORY__ - **Collection Date**: $(date +%Y-%m-%d) - **Collection Time**: $(date +%H:%M:%S) UTC - - **Storage Path**: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/` + - **Storage Path**: `/tmp/gh-aw/repo-memory/default/metrics/` ## Metrics Collection Process @@ -432,15 +432,15 @@ jobs: ### 3. Store Metrics in Repo Memory **Daily Storage**: - - Write metrics to: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/YYYY-MM-DD.json` + - Write metrics to: `/tmp/gh-aw/repo-memory/default/metrics/daily/YYYY-MM-DD.json` - Use today's date for the filename (e.g., `2024-12-24.json`) **Latest Snapshot**: - - Copy current metrics to: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/latest.json` + - Copy current metrics to: `/tmp/gh-aw/repo-memory/default/metrics/latest.json` - This provides quick access to most recent data without date calculations **Create Directory Structure**: - - Ensure the directory exists: `mkdir -p /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/` + - Ensure the directory exists: `mkdir -p /tmp/gh-aw/repo-memory/default/metrics/daily/` ### 4. Cleanup Old Data @@ -451,7 +451,7 @@ jobs: **Cleanup Command**: ```bash - find /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/ -name "*.json" -mtime +30 -delete + find /tmp/gh-aw/repo-memory/default/metrics/daily/ -name "*.json" -mtime +30 -delete ``` ### 5. Calculate Ecosystem Aggregates @@ -523,7 +523,7 @@ jobs: - Active workflows: 85 - Total safe outputs: 45 - Overall success rate: 89.2% - - Storage: /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/2024-12-24.json + - Storage: /tmp/gh-aw/repo-memory/default/metrics/daily/2024-12-24.json ⏱️ Collection took: 45 seconds ``` diff --git a/.github/workflows/metrics-collector.md b/.github/workflows/metrics-collector.md index a9d340402c7..936216d3519 100644 --- a/.github/workflows/metrics-collector.md +++ b/.github/workflows/metrics-collector.md @@ -38,7 +38,7 @@ As an infrastructure agent, you collect and persist performance data that enable - **Repository**: ${{ github.repository }} - **Collection Date**: $(date +%Y-%m-%d) - **Collection Time**: $(date +%H:%M:%S) UTC -- **Storage Path**: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/` +- **Storage Path**: `/tmp/gh-aw/repo-memory/default/metrics/` ## Metrics Collection Process @@ -131,15 +131,15 @@ Create a JSON object following this schema: ### 3. Store Metrics in Repo Memory **Daily Storage**: -- Write metrics to: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/YYYY-MM-DD.json` +- Write metrics to: `/tmp/gh-aw/repo-memory/default/metrics/daily/YYYY-MM-DD.json` - Use today's date for the filename (e.g., `2024-12-24.json`) **Latest Snapshot**: -- Copy current metrics to: `/tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/latest.json` +- Copy current metrics to: `/tmp/gh-aw/repo-memory/default/metrics/latest.json` - This provides quick access to most recent data without date calculations **Create Directory Structure**: -- Ensure the directory exists: `mkdir -p /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/` +- Ensure the directory exists: `mkdir -p /tmp/gh-aw/repo-memory/default/metrics/daily/` ### 4. Cleanup Old Data @@ -150,7 +150,7 @@ Create a JSON object following this schema: **Cleanup Command**: ```bash -find /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/ -name "*.json" -mtime +30 -delete +find /tmp/gh-aw/repo-memory/default/metrics/daily/ -name "*.json" -mtime +30 -delete ``` ### 5. Calculate Ecosystem Aggregates @@ -222,7 +222,7 @@ At the end of collection: - Active workflows: 85 - Total safe outputs: 45 - Overall success rate: 89.2% - - Storage: /tmp/gh-aw/repo-memory-default/memory/meta-orchestrators/metrics/daily/2024-12-24.json + - Storage: /tmp/gh-aw/repo-memory/default/metrics/daily/2024-12-24.json ⏱️ Collection took: 45 seconds ```