Skip to content

feat: brain/index.go; mail import is not a brain write (D14) - #12

Merged
eSlider merged 1 commit into
mainfrom
feat/d14-index-import
Aug 13, 2026
Merged

eSlider merged 1 commit into
mainfrom
feat/d14-index-import

Conversation

@eSlider

@eSlider eSlider commented Aug 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Shebang commands: bin/brain/{index,get,stats,eval,watch}.go, bin/mail/import.go, bin/markdown/import.go, bin/postgres/query.go. Shared exec helper: internal/cmdbin.
  • Brain write stays Python (bin/kb/index --with-mail). bin/mail/index_mail is a deprecation shim. Conversion and indexing stay separate (Ladybug 0.19 WAL).
  • Mail leaf extraction is unit-tested with synthetic Alice/Bob fixtures (bin/tools/mailleafs.py).

Gitea: https://git.produktor.io/eSlider/2dph/issues/13

Test plan

  • go test ./...
  • uv run python -m unittest discover -s bin/tools -t .
  • GitHub Actions green

Commands live at bin/brain/{index,get,stats,eval,watch}.go and
bin/mail/import.go, bin/markdown/import.go, bin/postgres/query.go.
Python remains the Ladybug write worker. index_mail is a deprecation
shim that rebuilds via --with-mail.
@cursor

cursor Bot commented Aug 13, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@eSlider
eSlider merged commit 20b78a9 into main Aug 13, 2026
2 checks passed
@eSlider
eSlider deleted the feat/d14-index-import branch August 13, 2026 16:46
eSlider added a commit that referenced this pull request Aug 13, 2026
…#12)

Commands live at bin/brain/{index,get,stats,eval,watch}.go and
bin/mail/import.go, bin/markdown/import.go, bin/postgres/query.go.
Python remains the Ladybug write worker. index_mail is a deprecation
shim that rebuilds via --with-mail.
eSlider added a commit that referenced this pull request Aug 24, 2026
…#12)

Commands live at bin/brain/{index,get,stats,eval,watch}.go and
bin/mail/import.go, bin/markdown/import.go, bin/postgres/query.go.
Python remains the Ladybug write worker. index_mail is a deprecation
shim that rebuilds via --with-mail.
eSlider added a commit that referenced this pull request Sep 15, 2026
…#12)

Commands live at bin/brain/{index,get,stats,eval,watch}.go and
bin/mail/import.go, bin/markdown/import.go, bin/postgres/query.go.
Python remains the Ladybug write worker. index_mail is a deprecation
shim that rebuilds via --with-mail.
eSlider added a commit that referenced this pull request Sep 15, 2026
…erved_at/external_id passthrough (#12)

- internal/contract (cgo-free): Leaf{Source,ExternalID,Kind,Text,...},
  Validate (source/external_id/kind/text обязательны), ContentHash =
  sha256(source|external_id|kind|text)[:32]; observed_at вне хэша — семантика
  gator ContentHash (G-8.0 #73).
- LeafInput/CorpusLeaf + колонка external_id (CREATE+ALTER+миграция).
- observed_at passthrough: из источника (mail receivedDate, git commit date,
  /ingest, facts-json), пусто → now() (обратная совместимость).
- external_id заполняется mail (message id) и git (commit sha).
- Тесты: contract (Validate/ContentHash, observed_at не в ключе),
  cgo write-path (observed_at passthrough, external_id колонка, /ingest).

Порт на origin/main: release/v1 на Gitea переименована в main.
eSlider pushed a commit that referenced this pull request Sep 15, 2026
…nal/contract + observed_at/external_id (#12)' (#235) from feat/contract#12-main into main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant