Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c14f7ed
Initial plan
Copilot Dec 3, 2025
1d8d929
Add repo-memory tool implementation
Copilot Dec 3, 2025
5a4ba30
Add tests for repo-memory and fix MCP validation
Copilot Dec 3, 2025
4f3776a
Final validation - all tests passing
Copilot Dec 3, 2025
58d0bea
Merge branch 'main' into copilot/add-repo-memory-tool
pelikhan Dec 4, 2025
dc19331
Add test-repo-memory workflow and update deep-report to use repo-memo…
Copilot Dec 4, 2025
61f5a6c
Move test-repo-memory from .github/workflows/tests to pkg/cli/workflo…
Copilot Dec 4, 2025
6be5281
Change default max file size from 1MB to 10KB for repo-memory
Copilot Dec 4, 2025
dd4ebc8
Update daily-firewall-report workflow to use repo-memory instead of c…
Copilot Dec 4, 2025
378c61f
Merge main branch and restore repo-memory schema
Copilot Dec 4, 2025
d2c610a
WIP: Merge main, update dev.md, add artifact upload for repo-memory (…
Copilot Dec 4, 2025
8f7a865
Complete push_repo_memory job implementation with artifact upload and…
Copilot Dec 4, 2025
e33ab7a
Add threat detection check to repo-memory push job
Copilot Dec 4, 2025
a5dda3a
Refine push_repo_memory job: remove name field, add checkout step, en…
Copilot Dec 4, 2025
c2adaaa
Refactor push_repo_memory to use embedded shell script with proper gi…
Copilot Dec 4, 2025
07b4564
Use FormatStepWithCommandAndEnv helper for repo-memory push step gene…
Copilot Dec 4, 2025
56cf46e
Merge branch 'main' into copilot/add-repo-memory-tool
pelikhan Dec 5, 2025
41ec1a9
Merge branch 'main' into copilot/add-repo-memory-tool
pelikhan Dec 5, 2025
a2d0ac7
Convert push_repo_memory from shell script to JavaScript with github-…
Copilot Dec 5, 2025
b11490b
Use compiler helper for git configuration instead of configuring in J…
Copilot Dec 5, 2025
107d9ab
Fix repo-memory push to copy files from artifact to git repo before p…
Copilot Dec 5, 2025
4da5496
Configure checkout to only setup git without checking out files in pu…
Copilot Dec 5, 2025
2d675bd
Update push_repo_memory JavaScript to handle sparse checkout properly
Copilot Dec 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
283 changes: 275 additions & 8 deletions .github/workflows/daily-firewall-report.lock.yml

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions .github/workflows/daily-firewall-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ tools:
bash:
- "*"
edit:
cache-memory:
repo-memory:
branch-name: memory/firewall-reports
description: "Firewall analysis history and aggregated data"
imports:
- shared/mcp/gh-aw.md
- shared/reporting.md
Expand Down Expand Up @@ -150,16 +152,16 @@ Generate a comprehensive daily report of all rejected domains across all agentic

## Instructions

### Step 0: Check Cache for Recent Analysis
### Step 0: Check Repo Memory for Recent Analysis

**EFFICIENCY FIRST**: Before starting the full analysis:

1. Check `/tmp/gh-aw/cache-memory/firewall-reports/` for the most recent report
1. Check `/tmp/gh-aw/repo-memory-default/memory/default/` for the most recent report
2. If a report exists from the last 24 hours:
- Read the cached run IDs that were analyzed
- Determine if any new workflow runs have occurred since then
- If no new runs, update the existing report with current timestamp and exit early
3. Cache the following for the next run:
3. Store the following in repo memory for the next run:
- Last analysis timestamp
- List of run IDs analyzed
- Aggregated blocked domains data
Expand Down
333 changes: 304 additions & 29 deletions .github/workflows/deep-report.lock.yml

Large diffs are not rendered by default.

36 changes: 21 additions & 15 deletions .github/workflows/deep-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ safe-outputs:
close-older-discussions: true

tools:
cache-memory:
repo-memory:
branch-name: memory/deep-report
description: "Long-term insights, patterns, and trend data"
file-glob: ["*.md"]
max-file-size: 1048576 # 1MB
github:
toolsets:
- all
Expand Down Expand Up @@ -130,16 +134,16 @@ jq '[.[].author.login] | unique' /tmp/gh-aw/weekly-issues-data/issues.json

## Intelligence Collection Process

### Step 0: Check Cache Memory
### Step 0: Check Repo Memory

**EFFICIENCY FIRST**: Before starting full analysis:

1. Check `/tmp/gh-aw/cache-memory/deep-report/` for previous insights
2. Load any existing:
- `last_analysis_timestamp.txt` - When the last full analysis was run
- `known_patterns.json` - Previously identified patterns
- `trend_data.json` - Historical trend data
- `flagged_items.json` - Items flagged for continued monitoring
1. Check `/tmp/gh-aw/repo-memory-default/memory/default/` for previous insights
2. Load any existing markdown files (only markdown files are allowed in repo-memory):
- `last_analysis_timestamp.md` - When the last full analysis was run
- `known_patterns.md` - Previously identified patterns
- `trend_data.md` - Historical trend data
- `flagged_items.md` - Items flagged for continued monitoring

3. If the last analysis was less than 20 hours ago, focus only on new data since then

Expand Down Expand Up @@ -180,13 +184,15 @@ Connect the dots between different data sources:
3. Find patterns that span multiple report types
4. Track how identified patterns evolve over time

### Step 4: Store Insights in Cache
### Step 4: Store Insights in Repo Memory

Save your findings to `/tmp/gh-aw/cache-memory/deep-report/`:
- Update `known_patterns.json` with any new patterns discovered
- Update `trend_data.json` with current metrics
- Update `flagged_items.json` with items needing attention
- Save `last_analysis_timestamp.txt` with current timestamp
Save your findings to `/tmp/gh-aw/repo-memory-default/memory/default/` as markdown files:
- Update `known_patterns.md` with any new patterns discovered
- Update `trend_data.md` with current metrics
- Update `flagged_items.md` with items needing attention
- Save `last_analysis_timestamp.md` with current timestamp

**Note:** Only markdown (.md) files are allowed in the repo-memory folder. Use markdown tables, lists, and formatting to structure your data.

## Report Structure

Expand Down Expand Up @@ -243,7 +249,7 @@ List all reports and data sources analyzed:
- Discussion references with links
- Workflow run references with links
- Time range of data analyzed
- Cache data used from previous analyses
- Repo-memory data used from previous analyses (stored in memory/deep-report branch)

## Output Guidelines

Expand Down
Loading
Loading