Repository navigation
resources-graph: tracer bullet — single issues, PRs and repos served from memory - #470
Merged
Merged
Conversation
This was referenced Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #465. First slice of PRD: resources-graph: an agent reads a public GitHub issue, PR or repository; a later read is served from memory.
What's in it
New
context-graph/resources-graphpackage:gh issue|pr|repo view,gh api repos/...,curltoapi.github.com, GitHub MCP tools, prompt links andowner/repo#n→ normalised Addresses.ghwithout-Ris skipped (the repo would come from the cwd).resourcecalls → Cache Reads. No network in hooks.resources-graph sweep): pending Touches → Resources via GraphQL, public-only, items resolved byissueOrPullRequest(number), comments/files/review threads paged to the end; failures kept as Unresolved Touches (not_found/not_public/rate_limited). FETCHED Touches refetch; PROMPTED ones of stored Resources just resolve.resourcetool: served byagent-context-graph mcp; returns content +fetched_at+updated_at, never calls GitHub, writes nothing.Credentials: the Sweep fetches with the user's own
ghlogin (gh auth token) — the access the agent already reads GitHub with — so most users configure nothing.github.tokenin the config file is an optional override that wins when set (amends the capture-model decision, see #457).agent-context-graph:
github.tokenconfig key (secret, survives bootstrap),--connector resources-graphin the runner and schema setup,doctorcheck.Decisions worth a look
[resource hit|miss] <address>; the connector records the Cache Read from the post-tool event.sessions-graphis a test-only dependency so privacy tests use the real owner of(:User)-[:HAD_SESSION].Testing
./scripts/dev-memgraph.sh test resources-graph): unit tests for the parser and the GitHub source; e2e for read-twice, private Touches / shared Resources, PR via/issues/N, refetch dropping deleted comments, unresolved reasons, idempotent hook re-delivery; token resolution (gh login, override, logged out, no gh); the realhook run claude-codepath. GitHub is replayed from responses recorded on memgraph/memgraph (tests/fixtures/record.py), plus one live test whenGITHUB_TOKENis set.resources-graph sweep→resourcehit/miss through the MCP tool registry; and a Sweep with nogithub.tokenconfigured, fetching with theghlogin.The README links
CONTEXT.md, which arrives with #461.