huginn sources --front: search only a repo's front-page files #27
Loading…
Reference in a new issue
No description provided.
Delete branch "eureka/prose-index-map"
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?
What
huginn sources --front "what is this repo"returns only front-page chunks: path exactly one ofREADME.md,README,readme.md,README.markdown,CLAUDE.md,AGENTS.mdat the repo root.--repostill applies and composes with it. Output already printsrepo:path:line_start-line_end @commit score, so the Mind can cite.Path: CLI
--front->SourceQuery.front(wire type, published schema regenerated) ->sources::search->SourceIndex::search_sources(.., front, ..)-> Qdrant{"key":"path","match":{"any":[..]}}on the existing keyword index. One owner of the list:sources::FRONT_PAGE_FILES. No adapter, nothing deleted.Wire compatibility
frontis#[serde(default)]: an old client's request decodes as false (tested). The reverse is not safe: a new client against an old daemon hasfrontsilently ignored and gets ordinary hits. Deploy the daemon before relying on the flag.Not live
This is not live. It needs the daemon release and
huginn-sourcesredeployed, and the index rebuilt against #26 (noise skipping) before front pages are what the index holds. Nothing here has been run against the live Qdrant; the filter shape is covered by unit tests only.Tests
index::qdrant::source_filter_tests(filter construction: front paths only, repo composed, no front condition without the ask)sources::tests::a_front_search_answers_only_root_front_pages_within_the_repo_asked(nesteddocs/README.md,README.md.bak, other repos excluded)cli::sources_front_prints_only_the_front_page_with_its_lineswire::a_source_query_encoded_without_front_decodes_as_false, published schema derivation testfrontnot threaded insources::search.huginn_daemon::sources::forge::tests::a_full_feed_page_asks_for_the_next_and_a_repo_past_the_cap_is_namedfailed once in one fullsourcesrun and passed on 3 reruns and on baseline; unrelated to this diff, looks flaky.Follow-up note (not implemented)
Markdown-heading idea: chunk markdown by heading sections (carry the heading path in the chunk) so a front-page hit starts at a section, not a line window. That is a chunker change and needs a
CHUNKER_VERSIONbump and a rebuild; deliberately left out here.🤖 Generated with Claude Code