Skip to content

Greg header and footer to combined - #4

Merged
IsItGreg merged 6 commits into
greg-combinedfrom
greg-header
Jan 25, 2024
Merged

IsItGreg merged 6 commits into
greg-combinedfrom
greg-header

Conversation

@IsItGreg

Copy link
Copy Markdown
Contributor

No description provided.

@IsItGreg
IsItGreg merged commit 7bb5cb2 into greg-combined Jan 25, 2024
andy-stark-redis added a commit that referenced this pull request Nov 18, 2026
Adds a local composite action, .github/actions/repo-memory-query/, and a workflow_dispatch workflow, repo-memory-query.yml, that search the Repo Memory store from a description of planned work before any PR exists. Each result carries the full squash or commit message behind it, read at the source because the stored summaries stop at 500 characters. The action is read-only: it never creates the index, writes a key, or posts to a PR or commit, and it uses the same MEMORY_REDIS_URL and OPENAI_API_KEY secrets as the memory action.

It lives here, not in redis-learn/redis-repo-memory, because that action is published on the GitHub Marketplace and a query mode is experimental. The team asked to leave the public action unchanged until the query feature proves useful. The query logic was first proposed there as PR #4, which this replaces.

Results are limited to the repository the workflow runs in. The search filters on the repo tag inside the KNN, then sets LIMIT. Bugbot caught that the first version filtered in JavaScript after a global search: other repositories' items could use up the neighbors, and FT.SEARCH returns only 10 rows by default, which silently capped any query-limit above 5. The workflow token also needs pull-requests: read and issues: read for the full-text lookup; the first draft had it and a rewrite dropped it. A failed lookup now logs its HTTP status instead of silently dropping the full text.

The offline test (test.js, Redis 8.10, mock embedding) builds a store with the memory action's schema, so it also catches drift from that layout. Its first version let mutants survive, and the crowding case was wrong: the in-repo item was the exact match, so nothing was crowded out. It now fails when the repo filter, LIMIT, or tag escaping is removed. The result is one REPO_MEMORY_QUERY_RESULT_JSON log line, which build/repo-memory-eval/recall/recall.py parses. Workflow logs of this public repo are public, so the query text is too; the README says so.

Learned: a post-filter after a global KNN plus FT.SEARCH's default 10-row LIMIT silently under-returns; scope the search with a TAG pre-filter and set LIMIT
Constraint: query.js must stay compatible with what redis-learn/redis-repo-memory writes (repo_memory_idx, memory: hashes, a repo TAG field, a cosine embedding from text-embedding-3-small); if that layout changes, update query.js and the seed in test.js
Constraint: package-lock.json is gitignored repo-wide, so run git add -f on the action's lockfile after any package.json change; the action installs with npm ci and fails without it
Directive: keep the repo filter inside the KNN query and keep LIMIT set; do not move scoping back into JavaScript
Rejected: adding query mode to redis-learn/redis-repo-memory | public Marketplace action and an experimental feature; keep it local until it is shown to be useful
Reversibility: clean
Gaps: no real Actions run yet (github.token default, sparse checkout, input wiring), no run with real OpenAI embeddings, and retrieval quality from a plan is unmeasured; whether a token without pull-requests scope can read public PRs is unverified
Recheck: after the first real runs on actual plans, decide whether to keep this action, upstream it into redis-learn/redis-repo-memory, or remove it
Ticket: DOC-7268
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.

1 participant