Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions .github/workflows/api-consumption-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,18 @@ Example structure:

## Step 3 — Update Cache-Memory Trending History

**Cache validation**: Before appending, check whether the cache was restored from a previous run:

```bash
history_file="/tmp/gh-aw/cache-memory/trending/api-consumption/history.jsonl"
if [ -f "$history_file" ] && [ -s "$history_file" ]; then
entry_count=$(wc -l < "$history_file")
echo "Cache restored from previous run: yes ($entry_count existing entries)"
else
echo "Cache restored from previous run: no (first run or empty cache)"
fi
```

Append today's summary to the rolling history file:

```
Expand Down Expand Up @@ -405,6 +417,7 @@ Create a discussion with the following structure. Replace placeholders with real
<summary>📦 Cache Memory Status</summary>

- **Location**: `/tmp/gh-aw/cache-memory/trending/api-consumption/history.jsonl`
- **Cache restored from previous run**: {yes (N entries) / no (first run)}
- **Data points stored**: {data_points}
- **Earliest entry**: {earliest_date}
- **Retention policy**: 90 days
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/cloclo.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/cloclo.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ tools:
playwright:
bash: true
cache-memory:
key: cloclo-memory-${{ github.workflow }}-${{ github.run_id }}
key: cloclo-memory-${{ github.workflow }}
safe-outputs:
create-pull-request:
expires: 2d
Expand Down
Loading
Loading