Skip to content

[q] Switch Daily Storify mined-loop persistence from cache-memory to repo-memory - #55394

Merged
pelikhan merged 5 commits into
mainfrom
copilot/switch-daily-storify-to-repo-memory
Aug 24, 2026
Merged

[q] Switch Daily Storify mined-loop persistence from cache-memory to repo-memory#55394
pelikhan merged 5 commits into
mainfrom
copilot/switch-daily-storify-to-repo-memory

Conversation

Copilot AI commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Daily Storify currently persists mined loop state in cache-memory, which can expire and break continuity across runs. This change moves Storify’s persistence to repo-memory so loop taxonomy and historical context remain durable.

  • Workflow configuration

    • Switched .github/workflows/daily-storify.md tool config from cache-memory to repo-memory.
    • Updated the workflow prompt section to explicitly describe the repo-memory pattern.
  • Persistence path migration

    • Updated Storify state paths from cache-backed storage to repo-memory storage under the workflow-owned subtree:
      • state.json
      • episodes.jsonl
      • loops.jsonl
  • Compiled workflow sync

    • Recompiled .github/workflows/daily-storify.lock.yml so runtime wiring matches the markdown source (repo-memory bootstrap/push flow and prompt template inputs).
tools:
  agentic-workflows:
  repo-memory: true
/tmp/gh-aw/repo-memory/default/storify/state.json
/tmp/gh-aw/repo-memory/default/storify/episodes.jsonl
/tmp/gh-aw/repo-memory/default/storify/loops.jsonl

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 12.4 AIC · ⌖ 10.3 AIC · ⊞ 6.2K ·
Comment /souschef to run again

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Daily Storify to use repo-memory for mined loop persistence [q] Switch Daily Storify mined-loop persistence from cache-memory to repo-memory Aug 24, 2026
Copilot AI requested a review from pelikhan August 24, 2026 12:42
@pelikhan
pelikhan marked this pull request as ready for review August 24, 2026 16:07
Copilot AI balanced review requested due to automatic review settings August 24, 2026 16:07
@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot resolve the merge conflicts on this branch.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Moves Daily Storify’s long-term state from expiring cache memory to Git-backed repo memory.

Changes:

  • Redirects Storify state files to repo-memory.
  • Adds generated clone, artifact, and push wiring.
  • Updates prompt guidance for durable persistence.
Show a summary per file
File Description
.github/workflows/daily-storify.md Enables and documents repo-memory storage.
.github/workflows/daily-storify.lock.yml Adds compiled repo-memory runtime jobs.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment on lines +65 to +67
- `/tmp/gh-aw/repo-memory/default/storify/state.json`
- `/tmp/gh-aw/repo-memory/default/storify/episodes.jsonl`
- `/tmp/gh-aw/repo-memory/default/storify/loops.jsonl`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 79e7d5d. shared/aw-logs-24h-fetch.md still sets cache-memory: true, so /tmp/gh-aw/cache-memory is still restored alongside repo-memory — the legacy state is available at cutover. Added a one-time migration step to the start-up sequence that copies each of the three files from /tmp/gh-aw/cache-memory/storify/ only when the repo-memory target is missing, never overwriting an existing repo-memory file. After the first run persists them to the memory branch, the migration is a no-op.

Kept this in the workflow's own prompt rather than editing the shared import, since shared/aw-logs-24h-fetch.md is consumed by other workflows. Lock file recompiled (the body is runtime-imported, so this shows up as a body_hash change).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correction: the commit is 9c28e1d, not 79e7d5d.

Comment thread .github/workflows/daily-storify.md Outdated
tools:
agentic-workflows:
cache-memory: true
repo-memory: true

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 79e7d5d. Replaced the boolean form with an object config carrying exact relative globs:

repo-memory:
  file-glob:
    - "storify/state.json"
    - "storify/episodes.jsonl"
    - "storify/loops.jsonl"

Recompiled, and the generated push job now emits FILE_GLOB_FILTER: "storify/state.json storify/episodes.jsonl storify/loops.jsonl" instead of an empty filter, so the contents: write path on memory/daily-storify only accepts those three files. GH_AW_MEMORY_CONSTRAINTS also now surfaces the allowed-file list to the agent.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correction: the commit is 9c28e1d, not 79e7d5d.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot this PR still needs forward progress. Please refresh the branch, resolve the remaining merge state, and then run the pr-finisher skill before handing back for review.

Run: https://github.com/github/gh-aw/actions/runs/32748984422

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 12.4 AIC · ⌖ 10.3 AIC · ⊞ 6.2K ·
Comment /souschef to run again

Copilot AI and others added 2 commits August 24, 2026 16:21
…ecompile daily-storify lock

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts on this branch.

Merge conflicts resolved in 7478f87 (merge) + f20babb.

The only conflict was in the generated .github/workflows/daily-storify.lock.yml — resolved by recompiling from the merged markdown source rather than hand-editing. .github/workflows/daily-storify.md merged cleanly and the repo-memory changes are intact. make agent-report-progress now passes, including the workflow drift check (this also required re-syncing two lock files that had drifted on main).

…gacy cache state

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot AI requested a review from gh-aw-bot August 24, 2026 16:48
@pelikhan
pelikhan merged commit 7eb5410 into main Aug 24, 2026
2 checks passed
@pelikhan
pelikhan deleted the copilot/switch-daily-storify-to-repo-memory branch August 24, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[q] Switch Daily Storify to repo-memory for mined loop persistence

4 participants