diff --git a/.github/workflows/agent-performance-analyzer.lock.yml b/.github/workflows/agent-performance-analyzer.lock.yml index 4491ef46e4..b7cc69ec40 100644 --- a/.github/workflows/agent-performance-analyzer.lock.yml +++ b/.github/workflows/agent-performance-analyzer.lock.yml @@ -112,14 +112,14 @@ jobs: BRANCH_NAME: memory/meta-orchestrators run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/meta-orchestrators" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/meta-orchestrators" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/meta-orchestrators does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -127,13 +127,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/meta-orchestrators branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -1249,7 +1249,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/meta-orchestrators` branch of the current repository @@ -1263,9 +1263,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1514,7 +1514,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Validate agent logs for errors @@ -1967,14 +1967,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/meta-orchestrators diff --git a/.github/workflows/audit-workflows.lock.yml b/.github/workflows/audit-workflows.lock.yml index c60e2439fd..364942175a 100644 --- a/.github/workflows/audit-workflows.lock.yml +++ b/.github/workflows/audit-workflows.lock.yml @@ -785,7 +785,7 @@ jobs: - Performance (token usage, costs, timeouts, efficiency) - Patterns (recurring issues, frequent failures) - **Cache Memory**: Store findings in `/tmp/gh-aw/repo-memory/`: + **Cache Memory**: Store findings in `/tmp/gh-aw/repo-memory/default/`: - `audits/.json` + `audits/index.json` - `patterns/{errors,missing-tools,mcp-failures}.json` - Compare with historical data @@ -875,7 +875,7 @@ jobs: **Quality**: Be thorough, specific, actionable, accurate **Efficiency**: Use repo memory, batch operations, respect timeouts - Memory structure: `/tmp/gh-aw/repo-memory/{audits,patterns,metrics}/*.json` + Memory structure: `/tmp/gh-aw/repo-memory/default/{audits,patterns,metrics}/*.json` Always create discussion with findings and update repo memory. diff --git a/.github/workflows/campaign-manager.lock.yml b/.github/workflows/campaign-manager.lock.yml index 2e9d265f9f..d12e2f571f 100644 --- a/.github/workflows/campaign-manager.lock.yml +++ b/.github/workflows/campaign-manager.lock.yml @@ -111,14 +111,14 @@ jobs: BRANCH_NAME: memory/meta-orchestrators run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/meta-orchestrators" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/meta-orchestrators" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/meta-orchestrators does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -126,13 +126,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/meta-orchestrators branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -1086,7 +1086,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/meta-orchestrators` branch of the current repository @@ -1100,9 +1100,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1351,7 +1351,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Validate agent logs for errors @@ -1804,14 +1804,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/meta-orchestrators diff --git a/.github/workflows/copilot-agent-analysis.lock.yml b/.github/workflows/copilot-agent-analysis.lock.yml index 96895292a0..166e81d79b 100644 --- a/.github/workflows/copilot-agent-analysis.lock.yml +++ b/.github/workflows/copilot-agent-analysis.lock.yml @@ -788,14 +788,14 @@ jobs: ### Phase 4: Historical Trending Analysis - Use the repo memory folder `/tmp/gh-aw/repo-memory/` to maintain historical data: + Use the repo memory folder `/tmp/gh-aw/repo-memory/default/` to maintain historical data: #### 4.1 Load Historical Data Check for existing historical data: ```bash - ls -la /tmp/gh-aw/repo-memory/copilot-agent-metrics/ - cat /tmp/gh-aw/repo-memory/copilot-agent-metrics/history.json + ls -la /tmp/gh-aw/repo-memory/default/copilot-agent-metrics/ + cat /tmp/gh-aw/repo-memory/default/copilot-agent-metrics/history.json ``` The history file should contain daily metrics in this format: @@ -849,7 +849,7 @@ jobs: Save to repo memory: ```bash - mkdir -p /tmp/gh-aw/repo-memory/copilot-agent-metrics/ + mkdir -p /tmp/gh-aw/repo-memory/default/copilot-agent-metrics/ # Append today's metrics to history.json ``` @@ -996,7 +996,6 @@ jobs: 3. **Status Values:** - "Merged" - PR was successfully merged - - "Closed" - PR was closed without merging PROMPT_EOF - name: Substitute placeholders uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -1020,6 +1019,7 @@ jobs: GH_AW_GITHUB_REPOSITORY: ${{ github.repository }} run: | cat << 'PROMPT_EOF' >> "$GH_AW_PROMPT" + - "Closed" - PR was closed without merging - "Open" - PR is still open 4. **If no PRs in last 24 hours:** diff --git a/.github/workflows/daily-code-metrics.lock.yml b/.github/workflows/daily-code-metrics.lock.yml index 66538116ba..1bbf71333e 100644 --- a/.github/workflows/daily-code-metrics.lock.yml +++ b/.github/workflows/daily-code-metrics.lock.yml @@ -610,7 +610,7 @@ jobs: Analyze codebase daily: compute size, quality, health metrics. Track 7/30-day trends. Store in cache, generate reports with visualizations. - **Context**: Fresh clone (no git history). Fetch with `git fetch --unshallow` for churn metrics. Memory: `/tmp/gh-aw/repo-memory/` + **Context**: Fresh clone (no git history). Fetch with `git fetch --unshallow` for churn metrics. Memory: `/tmp/gh-aw/repo-memory/default/` ## Metrics to Collect @@ -628,7 +628,7 @@ jobs: ## Data Storage - Store as JSON Lines in `/tmp/gh-aw/repo-memory/history.jsonl`: + Store as JSON Lines in `/tmp/gh-aw/repo-memory/default/history.jsonl`: ```json {"date": "2024-01-15", "timestamp": 1705334400, "metrics": {"size": {...}, "quality": {...}, "tests": {...}, "churn": {...}, "workflows": {...}, "docs": {...}}} ``` diff --git a/.github/workflows/daily-copilot-token-report.lock.yml b/.github/workflows/daily-copilot-token-report.lock.yml index cc8c9a4b54..2830657f10 100644 --- a/.github/workflows/daily-copilot-token-report.lock.yml +++ b/.github/workflows/daily-copilot-token-report.lock.yml @@ -886,7 +886,7 @@ jobs: - **Repository**: __GH_AW_GITHUB_REPOSITORY__ - **Report Date**: $(date +%Y-%m-%d) - - **Memory Location**: `/tmp/gh-aw/repo-memory/` + - **Memory Location**: `/tmp/gh-aw/repo-memory/default/` - **Analysis Period**: Last 30 days of data ## Phase 1: Data Collection @@ -1429,7 +1429,7 @@ jobs: - **Data Source**: GitHub Actions workflow run artifacts from last 30 days - **Engine Filter**: Copilot engine only - - **Memory Storage**: `/tmp/gh-aw/repo-memory/` + - **Memory Storage**: `/tmp/gh-aw/repo-memory/default/` - **Analysis Date**: [TIMESTAMP] - **Historical Data**: [N] days of trend data - **Cost Model**: Based on Copilot token pricing @@ -1457,7 +1457,7 @@ jobs: - **Efficient processing**: Use bash and Python for data processing, avoid heavy operations ### Historical Tracking - - **Persistent storage**: Store daily aggregates in `/tmp/gh-aw/repo-memory/history.jsonl` + - **Persistent storage**: Store daily aggregates in `/tmp/gh-aw/repo-memory/default/history.jsonl` - **JSON Lines format**: One JSON object per line for efficient appending - **Data retention**: Keep 90 days of history, prune older data - **Recovery**: Handle missing or corrupted memory data gracefully diff --git a/.github/workflows/daily-file-diet.lock.yml b/.github/workflows/daily-file-diet.lock.yml index cefa6e2eb6..9c7dcf8ea9 100644 --- a/.github/workflows/daily-file-diet.lock.yml +++ b/.github/workflows/daily-file-diet.lock.yml @@ -166,14 +166,14 @@ jobs: BRANCH_NAME: memory/campaigns run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/campaigns does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -181,13 +181,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/campaigns branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -1475,7 +1475,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/campaigns` branch of the current repository @@ -1489,9 +1489,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1744,7 +1744,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Upload cache-memory data as artifact @@ -2254,14 +2254,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/campaigns diff --git a/.github/workflows/daily-firewall-report.lock.yml b/.github/workflows/daily-firewall-report.lock.yml index c50074feed..f6eb41a27c 100644 --- a/.github/workflows/daily-firewall-report.lock.yml +++ b/.github/workflows/daily-firewall-report.lock.yml @@ -168,14 +168,14 @@ jobs: BRANCH_NAME: memory/firewall-reports run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/firewall-reports" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/firewall-reports" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/firewall-reports does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -183,13 +183,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/firewall-reports branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -1049,7 +1049,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. Firewall analysis history and aggregated data + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. Firewall analysis history and aggregated data - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/firewall-reports` branch of the current repository @@ -1062,9 +1062,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1314,7 +1314,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Upload cache-memory data as artifact @@ -1755,14 +1755,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/firewall-reports diff --git a/.github/workflows/daily-news.lock.yml b/.github/workflows/daily-news.lock.yml index 512cc03662..0de95dd770 100644 --- a/.github/workflows/daily-news.lock.yml +++ b/.github/workflows/daily-news.lock.yml @@ -142,7 +142,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} id: download-data name: Download repository activity data - run: "set -e\n\n# Create directories\nmkdir -p /tmp/gh-aw/daily-news-data\nmkdir -p /tmp/gh-aw/repo-memory/daily-news-data\n\n# Check if cached data exists and is recent (< 24 hours old)\nCACHE_VALID=false\nCACHE_TIMESTAMP_FILE=\"/tmp/gh-aw/repo-memory/daily-news-data/.timestamp\"\n\nif [ -f \"$CACHE_TIMESTAMP_FILE\" ]; then\n CACHE_AGE=$(($(date +%s) - $(cat \"$CACHE_TIMESTAMP_FILE\")))\n # 24 hours = 86400 seconds\n if [ $CACHE_AGE -lt 86400 ]; then\n echo \"✅ Found valid cached data (age: ${CACHE_AGE}s, less than 24h)\"\n CACHE_VALID=true\n else\n echo \"⚠ Cached data is stale (age: ${CACHE_AGE}s, more than 24h)\"\n fi\nelse\n echo \"ℹ No cached data found, will fetch fresh data\"\nfi\n\n# Use cached data if valid, otherwise fetch fresh data\nif [ \"$CACHE_VALID\" = true ]; then\n echo \"📦 Using cached data from previous run\"\n cp -r /tmp/gh-aw/repo-memory/daily-news-data/* /tmp/gh-aw/daily-news-data/\n echo \"✅ Cached data restored to working directory\"\nelse\n echo \"🔄 Fetching fresh data from GitHub API...\"\n \n # Calculate date range (last 30 days)\n END_DATE=$(date -u +%Y-%m-%d)\n START_DATE=$(date -u -d '30 days ago' +%Y-%m-%d 2>/dev/null || date -u -v-30d +%Y-%m-%d)\n \n echo \"Fetching data from $START_DATE to $END_DATE\"\n \n # Fetch issues (open and recently closed)\n echo \"Fetching issues...\"\n gh api graphql -f query=\"\n query(\\$owner: String!, \\$repo: String!) {\n repository(owner: \\$owner, name: \\$repo) {\n openIssues: issues(first: 100, states: OPEN, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n state\n createdAt\n updatedAt\n author { login }\n labels(first: 10) { nodes { name } }\n comments { totalCount }\n }\n }\n closedIssues: issues(first: 100, states: CLOSED, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n state\n createdAt\n updatedAt\n closedAt\n author { login }\n labels(first: 10) { nodes { name } }\n }\n }\n }\n }\n \" -f owner=\"${GITHUB_REPOSITORY_OWNER}\" -f repo=\"${GITHUB_REPOSITORY#*/}\" > /tmp/gh-aw/daily-news-data/issues.json\n \n # Fetch pull requests (open and recently merged/closed)\n echo \"Fetching pull requests...\"\n gh api graphql -f query=\"\n query(\\$owner: String!, \\$repo: String!) {\n repository(owner: \\$owner, name: \\$repo) {\n openPRs: pullRequests(first: 50, states: OPEN, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n state\n createdAt\n updatedAt\n author { login }\n additions\n deletions\n changedFiles\n reviews(first: 10) { totalCount }\n }\n }\n mergedPRs: pullRequests(first: 50, states: MERGED, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n state\n createdAt\n updatedAt\n mergedAt\n author { login }\n additions\n deletions\n }\n }\n closedPRs: pullRequests(first: 30, states: CLOSED, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n state\n createdAt\n closedAt\n author { login }\n }\n }\n }\n }\n \" -f owner=\"${GITHUB_REPOSITORY_OWNER}\" -f repo=\"${GITHUB_REPOSITORY#*/}\" > /tmp/gh-aw/daily-news-data/pull_requests.json\n \n # Fetch recent commits (last 100)\n echo \"Fetching commits...\"\n gh api \"repos/${GITHUB_REPOSITORY}/commits\" \\\n --paginate \\\n --jq '[.[] | {sha, author: .commit.author, message: .commit.message, date: .commit.author.date, html_url}]' \\\n > /tmp/gh-aw/daily-news-data/commits.json\n \n # Fetch releases\n echo \"Fetching releases...\"\n gh api \"repos/${GITHUB_REPOSITORY}/releases\" \\\n --jq '[.[] | {tag_name, name, created_at, published_at, html_url, body}]' \\\n > /tmp/gh-aw/daily-news-data/releases.json\n \n # Fetch discussions\n echo \"Fetching discussions...\"\n gh api graphql -f query=\"\n query(\\$owner: String!, \\$repo: String!) {\n repository(owner: \\$owner, name: \\$repo) {\n discussions(first: 50, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n createdAt\n updatedAt\n author { login }\n category { name }\n comments { totalCount }\n url\n }\n }\n }\n }\n \" -f owner=\"${GITHUB_REPOSITORY_OWNER}\" -f repo=\"${GITHUB_REPOSITORY#*/}\" > /tmp/gh-aw/daily-news-data/discussions.json\n \n # Check for changesets\n echo \"Checking for changesets...\"\n if [ -d \".changeset\" ]; then\n find .changeset -name \"*.md\" -type f ! -name \"README.md\" > /tmp/gh-aw/daily-news-data/changesets.txt\n else\n echo \"No changeset directory\" > /tmp/gh-aw/daily-news-data/changesets.txt\n fi\n \n # Cache the freshly downloaded data for next run\n echo \"💾 Caching data for future runs...\"\n cp -r /tmp/gh-aw/daily-news-data/* /tmp/gh-aw/repo-memory/daily-news-data/\n date +%s > \"$CACHE_TIMESTAMP_FILE\"\n \n echo \"✅ Data download and caching complete\"\nfi\n\nls -lh /tmp/gh-aw/daily-news-data/\n" + run: "set -e\n\n# Create directories\nmkdir -p /tmp/gh-aw/daily-news-data\nmkdir -p /tmp/gh-aw/repo-memory/default/daily-news-data\n\n# Check if cached data exists and is recent (< 24 hours old)\nCACHE_VALID=false\nCACHE_TIMESTAMP_FILE=\"/tmp/gh-aw/repo-memory/default/daily-news-data/.timestamp\"\n\nif [ -f \"$CACHE_TIMESTAMP_FILE\" ]; then\n CACHE_AGE=$(($(date +%s) - $(cat \"$CACHE_TIMESTAMP_FILE\")))\n # 24 hours = 86400 seconds\n if [ $CACHE_AGE -lt 86400 ]; then\n echo \"✅ Found valid cached data (age: ${CACHE_AGE}s, less than 24h)\"\n CACHE_VALID=true\n else\n echo \"⚠ Cached data is stale (age: ${CACHE_AGE}s, more than 24h)\"\n fi\nelse\n echo \"ℹ No cached data found, will fetch fresh data\"\nfi\n\n# Use cached data if valid, otherwise fetch fresh data\nif [ \"$CACHE_VALID\" = true ]; then\n echo \"📦 Using cached data from previous run\"\n cp -r /tmp/gh-aw/repo-memory/default/daily-news-data/* /tmp/gh-aw/daily-news-data/\n echo \"✅ Cached data restored to working directory\"\nelse\n echo \"🔄 Fetching fresh data from GitHub API...\"\n \n # Calculate date range (last 30 days)\n END_DATE=$(date -u +%Y-%m-%d)\n START_DATE=$(date -u -d '30 days ago' +%Y-%m-%d 2>/dev/null || date -u -v-30d +%Y-%m-%d)\n \n echo \"Fetching data from $START_DATE to $END_DATE\"\n \n # Fetch issues (open and recently closed)\n echo \"Fetching issues...\"\n gh api graphql -f query=\"\n query(\\$owner: String!, \\$repo: String!) {\n repository(owner: \\$owner, name: \\$repo) {\n openIssues: issues(first: 100, states: OPEN, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n state\n createdAt\n updatedAt\n author { login }\n labels(first: 10) { nodes { name } }\n comments { totalCount }\n }\n }\n closedIssues: issues(first: 100, states: CLOSED, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n state\n createdAt\n updatedAt\n closedAt\n author { login }\n labels(first: 10) { nodes { name } }\n }\n }\n }\n }\n \" -f owner=\"${GITHUB_REPOSITORY_OWNER}\" -f repo=\"${GITHUB_REPOSITORY#*/}\" > /tmp/gh-aw/daily-news-data/issues.json\n \n # Fetch pull requests (open and recently merged/closed)\n echo \"Fetching pull requests...\"\n gh api graphql -f query=\"\n query(\\$owner: String!, \\$repo: String!) {\n repository(owner: \\$owner, name: \\$repo) {\n openPRs: pullRequests(first: 50, states: OPEN, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n state\n createdAt\n updatedAt\n author { login }\n additions\n deletions\n changedFiles\n reviews(first: 10) { totalCount }\n }\n }\n mergedPRs: pullRequests(first: 50, states: MERGED, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n state\n createdAt\n updatedAt\n mergedAt\n author { login }\n additions\n deletions\n }\n }\n closedPRs: pullRequests(first: 30, states: CLOSED, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n state\n createdAt\n closedAt\n author { login }\n }\n }\n }\n }\n \" -f owner=\"${GITHUB_REPOSITORY_OWNER}\" -f repo=\"${GITHUB_REPOSITORY#*/}\" > /tmp/gh-aw/daily-news-data/pull_requests.json\n \n # Fetch recent commits (last 100)\n echo \"Fetching commits...\"\n gh api \"repos/${GITHUB_REPOSITORY}/commits\" \\\n --paginate \\\n --jq '[.[] | {sha, author: .commit.author, message: .commit.message, date: .commit.author.date, html_url}]' \\\n > /tmp/gh-aw/daily-news-data/commits.json\n \n # Fetch releases\n echo \"Fetching releases...\"\n gh api \"repos/${GITHUB_REPOSITORY}/releases\" \\\n --jq '[.[] | {tag_name, name, created_at, published_at, html_url, body}]' \\\n > /tmp/gh-aw/daily-news-data/releases.json\n \n # Fetch discussions\n echo \"Fetching discussions...\"\n gh api graphql -f query=\"\n query(\\$owner: String!, \\$repo: String!) {\n repository(owner: \\$owner, name: \\$repo) {\n discussions(first: 50, orderBy: {field: UPDATED_AT, direction: DESC}) {\n nodes {\n number\n title\n createdAt\n updatedAt\n author { login }\n category { name }\n comments { totalCount }\n url\n }\n }\n }\n }\n \" -f owner=\"${GITHUB_REPOSITORY_OWNER}\" -f repo=\"${GITHUB_REPOSITORY#*/}\" > /tmp/gh-aw/daily-news-data/discussions.json\n \n # Check for changesets\n echo \"Checking for changesets...\"\n if [ -d \".changeset\" ]; then\n find .changeset -name \"*.md\" -type f ! -name \"README.md\" > /tmp/gh-aw/daily-news-data/changesets.txt\n else\n echo \"No changeset directory\" > /tmp/gh-aw/daily-news-data/changesets.txt\n fi\n \n # Cache the freshly downloaded data for next run\n echo \"💾 Caching data for future runs...\"\n cp -r /tmp/gh-aw/daily-news-data/* /tmp/gh-aw/repo-memory/default/daily-news-data/\n date +%s > \"$CACHE_TIMESTAMP_FILE\"\n \n echo \"✅ Data download and caching complete\"\nfi\n\nls -lh /tmp/gh-aw/daily-news-data/\n" # Cache memory file share configuration from frontmatter processed below - name: Create cache-memory directory @@ -1175,7 +1175,7 @@ jobs: ## 💾 Repo Memory Available - **Repo-memory is enabled** - You have access to persistent storage at `/tmp/gh-aw/repo-memory/` that persists across workflow runs: + **Repo-memory is enabled** - You have access to persistent storage at `/tmp/gh-aw/repo-memory/default/` that persists across workflow runs: - Use it to **store intermediate analysis results** that might be useful for future runs - Store **processed data, statistics, or insights** that take time to compute @@ -1183,7 +1183,7 @@ jobs: - Files stored here will be available in the next workflow run via Git branches **Example use cases**: - - Save aggregated statistics (e.g., `/tmp/gh-aw/repo-memory/monthly-stats.json`) + - Save aggregated statistics (e.g., `/tmp/gh-aw/repo-memory/default/monthly-stats.json`) - Cache processed trend data for faster chart generation - Store analysis results that can inform future reports diff --git a/.github/workflows/deep-report.lock.yml b/.github/workflows/deep-report.lock.yml index 11ab3c4cf9..0778defcec 100644 --- a/.github/workflows/deep-report.lock.yml +++ b/.github/workflows/deep-report.lock.yml @@ -155,14 +155,14 @@ jobs: BRANCH_NAME: memory/deep-report run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/deep-report" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/deep-report" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/deep-report does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -170,13 +170,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/deep-report branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -1141,7 +1141,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. Long-term insights, patterns, and trend data + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. Long-term insights, patterns, and trend data - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/deep-report` branch of the current repository @@ -1155,9 +1155,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1406,7 +1406,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Upload cache-memory data as artifact @@ -1832,14 +1832,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/deep-report diff --git a/.github/workflows/human-ai-collaboration.lock.yml b/.github/workflows/human-ai-collaboration.lock.yml index 0551eee0c3..37e5685230 100644 --- a/.github/workflows/human-ai-collaboration.lock.yml +++ b/.github/workflows/human-ai-collaboration.lock.yml @@ -109,14 +109,14 @@ jobs: BRANCH_NAME: memory/campaigns run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/campaigns does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -124,13 +124,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/campaigns branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -1053,7 +1053,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/campaigns` branch of the current repository @@ -1067,9 +1067,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1321,7 +1321,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Validate agent logs for errors @@ -1742,14 +1742,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/campaigns diff --git a/.github/workflows/incident-response.lock.yml b/.github/workflows/incident-response.lock.yml index 75cd202d13..efbfe8180a 100644 --- a/.github/workflows/incident-response.lock.yml +++ b/.github/workflows/incident-response.lock.yml @@ -123,14 +123,14 @@ jobs: BRANCH_NAME: memory/campaigns run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/campaigns does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -138,13 +138,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/campaigns branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -1179,7 +1179,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/campaigns` branch of the current repository @@ -1193,9 +1193,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1470,7 +1470,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Validate agent logs for errors @@ -1900,14 +1900,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/campaigns diff --git a/.github/workflows/intelligence.lock.yml b/.github/workflows/intelligence.lock.yml index 0f8fe65b4f..d4806a4e95 100644 --- a/.github/workflows/intelligence.lock.yml +++ b/.github/workflows/intelligence.lock.yml @@ -159,14 +159,14 @@ jobs: BRANCH_NAME: memory/campaigns run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/campaigns does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -174,13 +174,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/campaigns branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -1709,7 +1709,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/campaigns` branch of the current repository @@ -1723,9 +1723,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1976,7 +1976,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Upload cache-memory data as artifact @@ -2414,14 +2414,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/campaigns diff --git a/.github/workflows/metrics-collector.lock.yml b/.github/workflows/metrics-collector.lock.yml index fbefde6c4e..e21f2dd04d 100644 --- a/.github/workflows/metrics-collector.lock.yml +++ b/.github/workflows/metrics-collector.lock.yml @@ -104,14 +104,14 @@ jobs: BRANCH_NAME: memory/meta-orchestrators run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/meta-orchestrators" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/meta-orchestrators" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/meta-orchestrators does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -119,13 +119,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/meta-orchestrators branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -641,7 +641,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/meta-orchestrators` branch of the current repository @@ -655,9 +655,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -858,7 +858,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Validate agent logs for errors @@ -942,14 +942,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/meta-orchestrators diff --git a/.github/workflows/org-wide-rollout.lock.yml b/.github/workflows/org-wide-rollout.lock.yml index 5413e0f4c2..da9b30f2c2 100644 --- a/.github/workflows/org-wide-rollout.lock.yml +++ b/.github/workflows/org-wide-rollout.lock.yml @@ -130,14 +130,14 @@ jobs: BRANCH_NAME: memory/campaigns run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/campaigns does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -145,13 +145,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/campaigns branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -1206,7 +1206,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/campaigns` branch of the current repository @@ -1220,9 +1220,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1498,7 +1498,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Validate agent logs for errors @@ -1928,14 +1928,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/campaigns diff --git a/.github/workflows/security-compliance.lock.yml b/.github/workflows/security-compliance.lock.yml index 554b6b4e62..095f0f6167 100644 --- a/.github/workflows/security-compliance.lock.yml +++ b/.github/workflows/security-compliance.lock.yml @@ -114,14 +114,14 @@ jobs: BRANCH_NAME: memory/campaigns run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/campaigns" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/campaigns does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -129,13 +129,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/campaigns branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -872,7 +872,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/campaigns` branch of the current repository @@ -886,9 +886,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1141,7 +1141,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Validate agent logs for errors @@ -1562,14 +1562,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/campaigns diff --git a/.github/workflows/spec-kit-execute.lock.yml b/.github/workflows/spec-kit-execute.lock.yml index 750309a8f5..9c7d1fa480 100644 --- a/.github/workflows/spec-kit-execute.lock.yml +++ b/.github/workflows/spec-kit-execute.lock.yml @@ -118,14 +118,14 @@ jobs: BRANCH_NAME: memory/default run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/default" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/default" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/default does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -133,13 +133,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/default branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -964,7 +964,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/default` branch of the current repository @@ -977,9 +977,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1262,7 +1262,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Upload cache-memory data as artifact @@ -1702,14 +1702,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/default diff --git a/.github/workflows/spec-kit-executor.lock.yml b/.github/workflows/spec-kit-executor.lock.yml index 1df3de6eb5..b2655c6f09 100644 --- a/.github/workflows/spec-kit-executor.lock.yml +++ b/.github/workflows/spec-kit-executor.lock.yml @@ -119,14 +119,14 @@ jobs: BRANCH_NAME: memory/default run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/default" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/default" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/default does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -134,13 +134,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/default branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -839,7 +839,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/default` branch of the current repository @@ -852,9 +852,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1137,7 +1137,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Upload cache-memory data as artifact @@ -1577,14 +1577,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/default diff --git a/.github/workflows/workflow-health-manager.lock.yml b/.github/workflows/workflow-health-manager.lock.yml index ed3635207f..aa5be61f50 100644 --- a/.github/workflows/workflow-health-manager.lock.yml +++ b/.github/workflows/workflow-health-manager.lock.yml @@ -111,14 +111,14 @@ jobs: BRANCH_NAME: memory/meta-orchestrators run: | set +e # Don't fail if branch doesn't exist - git clone --depth 1 --single-branch --branch "memory/meta-orchestrators" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory" 2>/dev/null + git clone --depth 1 --single-branch --branch "memory/meta-orchestrators" "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "/tmp/gh-aw/repo-memory/default" 2>/dev/null CLONE_EXIT_CODE=$? set -e if [ $CLONE_EXIT_CODE -ne 0 ]; then echo "Branch memory/meta-orchestrators does not exist, creating orphan branch" - mkdir -p "/tmp/gh-aw/repo-memory" - cd "/tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + cd "/tmp/gh-aw/repo-memory/default" git init git checkout --orphan "$BRANCH_NAME" git config user.name "github-actions[bot]" @@ -126,13 +126,13 @@ jobs: git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" else echo "Successfully cloned memory/meta-orchestrators branch" - cd "/tmp/gh-aw/repo-memory" + cd "/tmp/gh-aw/repo-memory/default" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" fi - mkdir -p "/tmp/gh-aw/repo-memory" - echo "Repo memory directory ready at /tmp/gh-aw/repo-memory" + mkdir -p "/tmp/gh-aw/repo-memory/default" + echo "Repo memory directory ready at /tmp/gh-aw/repo-memory/default" - name: Configure Git credentials env: REPO_NAME: ${{ github.repository }} @@ -1071,7 +1071,7 @@ jobs: ## Repo Memory Available - You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/` where you can read and write files that are stored in a git branch. + You have access to a persistent repo memory folder at `/tmp/gh-aw/repo-memory/default/` where you can read and write files that are stored in a git branch. - **Read/Write Access**: You can freely read from and write to any files in this folder - **Git Branch Storage**: Files are stored in the `memory/meta-orchestrators` branch of the current repository @@ -1085,9 +1085,9 @@ jobs: - **Max File Count**: 100 files per commit Examples of what you can store: - - `/tmp/gh-aw/repo-memory/notes.md` - general notes and observations - - `/tmp/gh-aw/repo-memory/state.json` - structured state data - - `/tmp/gh-aw/repo-memory/history/` - organized history files in subdirectories + - `/tmp/gh-aw/repo-memory/default/notes.md` - general notes and observations + - `/tmp/gh-aw/repo-memory/default/state.json` - structured state data + - `/tmp/gh-aw/repo-memory/default/history/` - organized history files in subdirectories Feel free to create, read, update, and organize files in this folder as needed for your tasks. PROMPT_EOF @@ -1336,7 +1336,7 @@ jobs: uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default retention-days: 1 if-no-files-found: ignore - name: Validate agent logs for errors @@ -1789,14 +1789,14 @@ jobs: continue-on-error: true with: name: repo-memory-default - path: /tmp/gh-aw/repo-memory + path: /tmp/gh-aw/repo-memory/default - name: Push repo-memory changes (default) if: always() uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: GH_TOKEN: ${{ github.token }} GITHUB_RUN_ID: ${{ github.run_id }} - ARTIFACT_DIR: /tmp/gh-aw/repo-memory + ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default MEMORY_ID: default TARGET_REPO: ${{ github.repository }} BRANCH_NAME: memory/meta-orchestrators diff --git a/docs/src/content/docs/setup/cli.md b/docs/src/content/docs/setup/cli.md index d4e48bc090..4248ba6fcb 100644 --- a/docs/src/content/docs/setup/cli.md +++ b/docs/src/content/docs/setup/cli.md @@ -18,7 +18,7 @@ Start here! These commands cover the essential workflow lifecycle from setup to | Command | When to Use | Details | |---------|-------------|---------| | **`gh aw init`** | Set up your repository for agentic workflows | [→ Documentation](#init) | -| **`gh aw add (workflow)`** | Add workflows from The Agentics collection | [→ Documentation](#add) | +| **`gh aw add (workflow)`** | Add workflows from The Agentics collection or other repositories | [→ Documentation](#add) | | **`gh aw status`** | Check current state of all workflows | [→ Documentation](#status) | | **`gh aw compile`** | Convert markdown to GitHub Actions YAML | [→ Documentation](#compile) | | **`gh aw run (workflow)`** | Execute workflows immediately in GitHub Actions | [→ Documentation](#run) | @@ -208,7 +208,7 @@ Configures `.gitattributes` to mark `.lock.yml` files as generated, adds Copilot #### `add` -Add workflows from The Agentics collection or other repositories. Displays the workflow description (from frontmatter `description` field) to provide context. +Add workflows from The Agentics collection or other repositories to .github/workflows. Displays the workflow description (from frontmatter `description` field) to provide context. ```bash wrap gh aw add githubnext/agentics/ci-doctor # Add single workflow