Commit Graph

404 Commits

Author SHA1 Message Date
Teknium 74d09db450 merge(r3-27): group D 2026-09-02 22:52:17 -07:00
Teknium 7a781648bf Merge branches 'simp/r3-27-D-mem0' and 'simp/r3-27-D-holo' into simp/r3-27-D 2026-09-02 22:25:12 -07:00
Teknium cc4f88aa76 refactor(memory/mem0): inline single-use setup helpers, joined summary prints, blank-line squeeze 2026-09-02 22:20:12 -07:00
Teknium 99b7bb9add refactor(memory,langfuse): compact literal/config builders and call-site formatting 2026-09-02 22:19:47 -07:00
Teknium 011f22afda refactor(memory/holographic): compact constants, release_all_under pop-in-place, hrr module docstring and blob error paths 2026-09-02 22:17:13 -07:00
Teknium 5cc1b17671 refactor(memory/holographic): inline sim lambdas into _vector_query, fold _harvestable_text into _auto_extract_facts 2026-09-02 22:14:14 -07:00
Teknium bc6f2a0d97 refactor(memory,langfuse): last small folds (tool dispatch lookup, truncation, bounded message) 2026-09-02 22:12:06 -07:00
Teknium f612374fe9 refactor(langfuse,hindsight,embedded): fold child-ending, content shape descriptor, chmod helper 2026-09-02 22:08:46 -07:00
Teknium 58a323999c refactor(memory/holographic): single extraction-pattern table, drop non-package import shims, compact schema literals and docstrings 2026-09-02 22:05:59 -07:00
Teknium 1be4e79ed9 refactor(memory,langfuse): table-driven hook registration, compact signatures, fold tool-result backfill and finalize paths 2026-09-02 22:01:49 -07:00
Teknium 7ce8de140c refactor(memory/mem0): contextlib.suppress for swallow-all blocks, derived _FLAG_KEYS, packed initialize 2026-09-02 21:58:20 -07:00
Teknium 10c1457847 refactor(langfuse,hindsight): extract _build_client from _get_langfuse; fold usage-detail and delta-turn selection 2026-09-02 21:57:58 -07:00
Teknium 12e291b0f3 refactor(memory/holographic): inline reason/update lambdas, flatten _harvestable_text, share ROLE atoms from holographic.py 2026-09-02 21:54:05 -07:00
Teknium ce45335720 refactor(memory/mem0): fold saved-summary print into _persist_provider_config, comprehension _write_env, one-path dep install 2026-09-02 21:53:30 -07:00
Teknium 68ac1576cf refactor(memory/holographic): unify probe/related/reason ranking via _vector_query, tuple-based contradict scan, compact docstrings 2026-09-02 21:50:36 -07:00
Teknium 58277b0252 refactor(memory,langfuse): fold small helpers (read_file line parse, json hint merge, env-file parse, setup prompts) 2026-09-02 21:49:17 -07:00
Teknium cdef26332c Merge branches 'simp/r3-27-D-super' and 'simp/r3-27-D-rb' into simp/r3-27-D 2026-09-02 21:44:12 -07:00
Teknium 002ace8602 refactor(memory/holographic): _tool_handler dispatch factory, retrieval _shift/_phases helpers, module-level FTS constants, drop redundant sync_turn no-op 2026-09-02 21:42:54 -07:00
Teknium 7b4891a2f5 refactor(memory/mem0): inline single-use setup helpers, table-driven env_writes, compact __init__ 2026-09-02 21:42:31 -07:00
Teknium 4c3e5cf2d9 refactor(memory,langfuse): unify recall/reflect calls, client close, hook client+key resolution; dict-comprehension metadata builders 2026-09-02 21:41:07 -07:00
Teknium d345e1a02a refactor(memory/mem0): _try breaker wrapper for background paths, _pg_ready, vector-description table, compact comments 2026-09-02 21:35:10 -07:00
Teknium abe730fa40 refactor(memory/byterover): compact provider init, sync_turn and tool result path 2026-09-02 21:33:46 -07:00
Teknium a6b45ffb1f refactor(memory/supermemory): _quietly helper for log-and-return, tuple-driven tool schemas, inline single-use helpers 2026-09-02 21:32:00 -07:00
Teknium 7984db2e76 refactor(memory/retaindb): tighten provider init/prefetch/file tools and client headers 2026-09-02 21:31:56 -07:00
Teknium b5721f7cc4 refactor(memory): compact discovery/config-schema docs, fold CLI scan early-returns, dedupe hindsight setup/template request building 2026-09-02 21:28:43 -07:00
Teknium 94ed143de2 refactor(hindsight): split initialize() into settings phase helpers; unify prefetch join and retain enqueue 2026-09-02 21:18:13 -07:00
Teknium e02bb9e437 refactor(memory/holographic): lambda action table, _harvestable_text helper, entity lookup loop, hrr blob decoders 2026-09-02 21:17:08 -07:00
Teknium 38a5c86729 refactor(memory): compact retaindb queue bootstrap/overlay and byterover config loader/schemas 2026-09-02 21:16:10 -07:00
Teknium 034078214c refactor(memory/mem0): _setup probe helper, single TOOL_SCHEMAS table, closing() in backend, drop banners/restating docstrings 2026-09-02 21:15:59 -07:00
Teknium 8e35634acc refactor(hindsight): compact __init__ state setup, header docs and helper docstrings 2026-09-02 21:13:55 -07:00
Teknium cfa88e0104 refactor(memory/byterover): tool dispatch as one data table (arg, fail msg, runner, formatter) 2026-09-02 21:13:20 -07:00
Teknium 9e3fbba4d2 refactor(memory/supermemory): unify client build, tool dispatch with error prefixes, config loading; drop dead prefetch state 2026-09-02 21:12:37 -07:00
Teknium b0b8e39862 refactor(memory/retaindb): compact queue connection handling, prefetch assembly, dispatch and shutdown 2026-09-02 21:12:01 -07:00
Teknium b0f7d07773 refactor(memory/holographic): store _one/_write SQL helpers, retrieval atom helper, compact docstrings 2026-09-02 21:09:39 -07:00
Teknium a2811e03f1 refactor(memory/retaindb): inline single-use prefetch fetchers into jobs table, fold config strip, merge queue close helpers 2026-09-02 21:06:38 -07:00
Teknium 968cbef157 refactor(memory/mem0): table-driven tool dispatch, shared _oss_hint/_truthy/_add helpers, packed provider tables 2026-09-02 21:05:29 -07:00
Teknium c829298476 refactor(memory/byterover): flatten _run_brv error handling, compact provider init/hooks/dispatch 2026-09-02 21:01:39 -07:00
Teknium 42291693ab refactor(memory/retaindb): fold HTTP calls into one _http helper, unify debug-logged failures via _quiet, compact schemas/client 2026-09-02 20:57:29 -07:00
Teknium 4d1880e0bf fix(integration): restore subprocess encoding/stdin guards dropped in simplification
Simplification workers collapsed subprocess call sites into shared kwargs
helpers and dropped the Windows/TUI safety kwargs on the way:

- encoding='utf-8', errors='replace' restored on text=True runs in
  copilot_acp_client, hermes_cli/setup (vercel install), managed_uv
  (codesign steps), local_runtime/hardware._stdout, a2a adapter.
- stdin=subprocess.DEVNULL restored on copilot probe, verify/runner
  _SUBPROCESS_KW, iron_proxy._run, google_meet playwright/system_profiler,
  simplex convert, whatsapp _RUN_TEXT, mem0 ollama serve Popen.
  google_meet sudo/brew install keeps inherited stdin (user-confirmed,
  may prompt) — marked noqa: subprocess-stdin.
- Windows-safe SIGKILL: getattr(signal, 'SIGKILL', SIGTERM) in
  verify/runner; photon _kill call re-marked windows-footgun: ok
  (unreachable on win32).
- scripts/check_subprocess_stdin.py now recognizes **kwargs splats
  (**_KW / **_kw(...)) ONLY when the same-file definition provably sets
  stdin= — covers tui_gateway _capture_run_kwargs/run_kw. Parity test added.
2026-09-02 16:36:10 -07:00
Teknium 57c35858e3 refactor(plugins/memory): holographic/supermemory/retaindb/byterover — action dispatch tables, unified HTTP helpers, dead code removal; provider registry dedupe 2026-09-02 13:30:10 -07:00
Teknium 87a450145c refactor(plugins/memory): mem0 — table-driven setup prompts, tool dispatch, compact backend 2026-09-02 13:30:10 -07:00
Teknium 64f430a051 refactor(plugins/memory): honcho — extract session context/auth/peers/migration, dialectic, client cache, tool schemas; unify _parse_* config helpers; table-driven CLI 2026-09-02 13:30:09 -07:00
Teknium 3cd4d6d69a refactor(plugins/memory): hindsight — split settings/embedded/setup modules, unify config parsing, remove dead helpers 2026-09-02 13:30:09 -07:00
Teknium 365485a9f6 refactor(plugins/memory): openviking — remove dead search/rebuild/migrate paths, extract setup/CLI with dedupe, action dispatch tables 2026-09-02 13:30:09 -07:00
Teknium cd7811a7a7 fix(memory/hindsight): propagate profile scope into background threads under multiplex
Under multiplex_profiles the Hindsight provider's writer, daemon-start and
prefetch threads were spawned as bare threading.Thread, so they started with
an empty contextvars Context: no profile secret scope and no HERMES_HOME
override. get_secret() fails closed there, so the local_embedded daemon never
booted and every retain raised UnscopedSecretError, even though the spawning
thread (initialize()/sync_turn() inside the gateway's copy_context'd turn) had
the scope all along.

Spawn each thread with contextvars.copy_context().run so the child inherits
the spawner's scope + home override. No environ fallback, no re-parsed .env.
The shared hindsight-loop thread needs no wrap: coroutines submitted via
run_coroutine_threadsafe already run in the submitter's context per call.

Fixes #92608
Fixes #94933

Co-authored-by: KIAgent01 <297567825+KIAgent01@users.noreply.github.com>
Co-authored-by: Parker Fawcett <259203091+Parker-Fawcett@users.noreply.github.com>
2026-09-02 07:00:13 -07:00
ehz0ah 71a8240170 docs(openviking): clarify remember extraction semantics 2026-09-01 14:11:55 +05:30
ehz0ah 7fef5c7898 fix(openviking): clarify remember submission status 2026-09-01 14:11:55 +05:30
ehz0ah 6446e19cb5 fix(openviking): route remember through session extraction 2026-09-01 14:11:55 +05:30
ehz0ah 64b96bb5d2 fix(openviking): synchronize setup connection state 2026-08-31 17:20:45 +05:30
ehz0ah 823bcc887a feat(openviking): use user memory by default
Remove the implicit hermes peer and the peer question from new connection setup. Preserve explicit peer settings and keep memory paths consistent with the captured client identity.

Add setup, configuration, request, recall, and session regression tests, plus upgrade guidance.
2026-08-31 17:20:45 +05:30