Serve in-process (stop exec Python) #3

Closed
opened 2026-08-13 14:05:47 +01:00 by eSlider · 2 comments
Owner

Why

bin/server execs bin/kb/search (Python). Portable API must be Go in-process.

Do

  • bin/brain/serve.go + internal/httpapi call internal/brain search.
  • Endpoints: /health, /search, get leaf, stats, audit, ingest status.

Test

  • HTTP tests against a fake searcher; no Python in the serve path.
## Why `bin/server` execs `bin/kb/search` (Python). Portable API must be Go in-process. ## Do - `bin/brain/serve.go` + `internal/httpapi` call `internal/brain` search. - Endpoints: `/health`, `/search`, get leaf, stats, audit, ingest status. ## Test - HTTP tests against a fake searcher; no Python in the serve path.
Author
Owner

Partial via https://github.com/eSlider/2dph/pull/9: bin/brain/serve.go + internal/httpapi. Default backend is var/bin/brain-search (Go), not Python.

Still open: true in-process call into internal/brain (needs cgo in the API binary / tagged build), extra HTTP endpoints (get/stats/audit).

Partial via https://github.com/eSlider/2dph/pull/9: `bin/brain/serve.go` + `internal/httpapi`. Default backend is `var/bin/brain-search` (Go), not Python. Still open: true in-process call into `internal/brain` (needs cgo in the API binary / tagged build), extra HTTP endpoints (get/stats/audit).
Author
Owner

Merged https://github.com/eSlider/2dph/pull/13 — in-process search. Closing.

Merged https://github.com/eSlider/2dph/pull/13 — in-process search. Closing.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eSlider/2dph#3