Port tau internal/indexing (codesearch) into archie-core #578

Closed
opened 2026-10-27 13:36:53 +00:00 by sam · 0 comments
Owner

First slice of the tau cherry-pick strategy. Copy-and-mutate (NOT extract to pkg/ - Sam's decision: exporting would force designing metrics/session/logger seams upfront before archie-core knows which it wants differently).

tau/internal/indexing is the cheapest high-value lift: 512 LoC, one file, and its only tau coupling is 3 calls to config.WorkspaceIndexDir()/WorkspaceIndexDBPath(). Nothing else in tau imports it.

Mutations: replace the global config path helpers with explicit constructor params (archie-core passes config, no globals); add the workspace-codesearch helper subcommand to archied since the manager deliberately runs google/codesearch in a child process (upstream fatal exits + mmap leaks must not kill the daemon).

Each lifted file carries a provenance header (source path + tau commit) so a future refresh is a diff, not archaeology.


Imported from beads archie-core-1786637491079-49-3c54bae3 · GitHub #70 · type feature · priority P2 · created 2026-08-08 · closed 2026-08-08

First slice of the tau cherry-pick strategy. Copy-and-mutate (NOT extract to pkg/ - Sam's decision: exporting would force designing metrics/session/logger seams upfront before archie-core knows which it wants differently). tau/internal/indexing is the cheapest high-value lift: 512 LoC, one file, and its only tau coupling is 3 calls to config.WorkspaceIndexDir()/WorkspaceIndexDBPath(). Nothing else in tau imports it. Mutations: replace the global config path helpers with explicit constructor params (archie-core passes config, no globals); add the workspace-codesearch helper subcommand to archied since the manager deliberately runs google/codesearch in a child process (upstream fatal exits + mmap leaks must not kill the daemon). Each lifted file carries a provenance header (source path + tau commit) so a future refresh is a diff, not archaeology. --- _Imported from beads `archie-core-1786637491079-49-3c54bae3` · GitHub #70 · type feature · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumfeature labels 2026-10-27 13:36:53 +00:00
sam self-assigned this 2026-10-27 13:36:53 +00:00
sam closed this issue 2026-10-27 13:36:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#578