You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Triggered by: @pelikhan via /q use git file version stamps to implement round robin scheme on PR #31669
Analysis
spec-extractor
The current round-robin scheme stores a last_index counter in /tmp/gh-aw/cache-memory/spec-extractor/rotation.json. This has a key weakness: cache-memory is ephemeral and can be reset, causing the rotation to restart from index 0 unexpectedly.
The fix uses git log --format="%at" -1 -- pkg/<pkg>/README.md to get the last commit timestamp for each package's README.md. Packages are then sorted ascending (oldest or missing first) and the first 4 are selected. This is stateless — git history is the state.
Changes Made
.github/workflows/spec-extractor.md
Replacedrotation.json load/save logic with git timestamp lookup per package
RemovedLAST_INDEX / NEXT_INDEX variables (no longer needed)
Added associative array PKG_TS mapping package → unix timestamp of last README.md commit
Selection: sort by timestamp ascending, pick first 4 (least-recently-updated)
Context file: now shows a table of packages + their timestamps instead of index values
The bundle file is available in the agent artifact in the workflow run linked above.
To create a pull request with the changes:
# Download the artifact from the workflow run
gh run download 25737278783 -n agent -D /tmp/agent-25737278783
# Fetch the bundle into a local branch
git fetch /tmp/agent-25737278783/aw-q-spec-extractor-git-stamp-roundrobin.bundle refs/heads/q/spec-extractor-git-stamp-roundrobin:refs/heads/q/spec-extractor-git-stamp-roundrobin-46d23b6c2afb4d79
git checkout q/spec-extractor-git-stamp-roundrobin-46d23b6c2afb4d79
# Push the branch to origin
git push origin q/spec-extractor-git-stamp-roundrobin-46d23b6c2afb4d79
# Create the pull request
gh pr create --title '[q] use git file version stamps for round-robin selection' --base main --head q/spec-extractor-git-stamp-roundrobin-46d23b6c2afb4d79 --repo github/gh-aw
Q Workflow Optimization Report
Triggered by:
@pelikhanvia/q use git file version stamps to implement round robin schemeon PR #31669Analysis
spec-extractor
The current round-robin scheme stores a
last_indexcounter in/tmp/gh-aw/cache-memory/spec-extractor/rotation.json. This has a key weakness: cache-memory is ephemeral and can be reset, causing the rotation to restart from index 0 unexpectedly.The fix uses
git log --format="%at" -1 -- pkg/<pkg>/README.mdto get the last commit timestamp for each package's README.md. Packages are then sorted ascending (oldest or missing first) and the first 4 are selected. This is stateless — git history is the state.Changes Made
.github/workflows/spec-extractor.mdrotation.jsonload/save logic with git timestamp lookup per packageLAST_INDEX/NEXT_INDEXvariables (no longer needed)PKG_TSmapping package → unix timestamp of last README.md commitrotation.json; updated success criteriaExpected Improvements
timestamp=0and are processed firstValidation
spec-extractorcompiled successfully (no errors, no warnings)Note:
.lock.ymlwill be regenerated automatically after merge.Note
This was originally intended as a pull request, but the git push operation failed.
Workflow Run: View run details and download bundle artifact
The bundle file is available in the
agentartifact in the workflow run linked above.To create a pull request with the changes: