feat: wire mache to consume ley-line-open's leyline parse output#167
Merged
jamestexas merged 1 commit intomainfrom Apr 25, 2026
Merged
feat: wire mache to consume ley-line-open's leyline parse output#167jamestexas merged 1 commit intomainfrom
jamestexas merged 1 commit intomainfrom
Conversation
Align mache with LLO's table schemas and daemon protocol: 1. node_defs: rename dir_id β node_id across all SQL queries, DDL, and test fixtures. Aligns with LLO's (token, node_id, source_id) schema. This was the blocker β every MCP request failed with "no such column: dir_id". 2. DiscoverOrStart: call `leyline daemon` instead of `leyline serve`. The daemon subcommand creates the UDS socket; serve does not. 3. ASTWalker.ExtractGoImports: reads LLO's _imports table for qualified call resolution (auth.Validate β github.com/foo/auth). Table-presence guarded for older .dbs without _imports. Verified end-to-end: leyline parse β mache serve β list_directory, find_callers, read_file all work against LLO-produced .db with 273K nodes, 28K refs, 2K defs, 1.1K imports.
306fb68 to
50a2a60
Compare
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.
Summary
Align mache with ley-line-open (LLO) so
leyline parse β mache serveworks end-to-end.Changes
dir_idβnode_idβ LLO produces(token, node_id, source_id), mache querieddir_id. This was the blocker β every MCP request failed.serveβdaemonβ the daemon subcommand creates the UDS socket for coordination_importstable for qualified call resolutionVerified end-to-end
Test plan
task buildpassesgo test ./internal/graph/ ./internal/ingest/passesgo test ./cmd/passes (node_defs fixtures updated)