feat: context-aware dynamic log discovery — scan /var/log and /opt ranked by problem context and reference corpus #23
Labels
No labels
compliance
demo
deployment
docs
enhancement
parser
patterns
performance
security
ux
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/turnstone#23
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
When connecting to an unfamiliar system (especially over SSH), Turnstone should not require the user to know where log files live. It should scan candidate paths, rank them against the active problem context and reference corpus, and pre-select the most relevant ones — with the user able to confirm, adjust, or add manually.
Problem
Hard-coded or manually specified source paths break down on unfamiliar systems. A tech connecting to a remote host for the first time should not need to know the layout of that system to start pulling useful logs.
Approach: context-aware path ranking
Confidence tiers
Corpus as path oracle
At reference corpus ingest time, extract filesystem path patterns from chunk text and store them as chunk metadata. At discovery time this becomes a fast metadata lookup — no LLM inference required. Reference docs the user already carries for diagnosis serve double duty as a site map for log collection, with no extra configuration.
Implementation notes
/[a-z][^\s"]+\.logand directory patterns) at ingest time; store as metadata on the chunkAcceptance Criteria
GET /api/sources/{id}/discover— trigger a scan and return ranked candidate pathsRelated