yams/tests/unit/cli
Trevon ae15bf317a
perf(ingest): harden daemon batching and shutdown (#58)
* fix(daemon): harden model state ownership

Keep ModelPoolConfig single-defined and serialize telemetry snapshots to avoid ODR drift and torn concurrent reads.

* refactor(daemon): consolidate ingest pollers

Require the wake-timer contract so every post-ingest stage shares one event-driven poller configuration.

* refactor(daemon): unify repair execution

Share admission, operation ordering, cancellation, progress, and result aggregation between synchronous and asynchronous repair paths.

* refactor(daemon): unify runtime tuning

Resolve startup and reload settings through one typed path so parsing, precedence, and range validation cannot drift.

* refactor(daemon)!: remove dead IPC surfaces

Delete unreferenced framing, cancellation, and compatibility paths while keeping the active streaming protocol intact.

BREAKING CHANGE: callers using connectAsync or legacy MessageFramer and FrameReader helpers must migrate to connect, frame_message_into, feed, and get_frame.

* refactor(daemon): hide test hooks

Preserve test-library linkage without exposing daemon-only probes through production headers or external symbols.

* fix(daemon): avoid replaying successful adds

A fresh-connection transport retry reuses the response handler. Clear its stale EOF error when the retry returns a valid add response so the outer retry loop does not enqueue the document again.

* bench(ingest): enforce lossless pipeline runs

Separate admission, storage, drain, enrichment, and searchability timing. Decision-grade plans now reject drops, duplicate processing, incomplete pipelines, and experiment identity drift.

* bench(search): expose cold seed ingest timings

Pair generalized-memory quality arms with admission, storage, drain, searchability, and enrichment timing from their shared cold seed. Keep the observation distinct from repeated throughput measurements.

* perf(ingest): batch deferred content indexing

Directory ingestion already schedules content work through post-ingest. Avoid duplicate inline indexing and coalesce normal-priority trickles within a bounded window.

* feat(metadata): expose insert writer metrics

Separate queue, batch-apply, and transaction time so ingestion runs can attribute connection pressure without changing write semantics.

* fix(daemon): retry transient refused connects

The daemon socket can be bound before its listener is ready during startup. Reuse the existing bounded retry budget for that refusal window.

* bench(ingest): attribute submission path costs

Decision-grade runs need stable coalescing identity and separate queue, apply, transaction, and estimated connection-wait costs.

* perf(ingest): batch durable document storage

Commit chunks, manifests, references, and metadata in bounded batches while preserving publication only after durable reference success.

* perf(ingest): coalesce bulk post-processing

Use a 16-item bulk cap while keeping latency-sensitive daemon ingestion on the existing four-item priority quota.

* bench(ingest): record post-ingest batch size

Include the effective cap in metrics and experiment identity so runs with different batching policies cannot be compared as one system.

* perf(ingest): batch queued storage waves

Preserve single-document fallback semantics and execute inline when the coordinator has one worker to avoid self-deadlock.

* perf(ingest): route bulk enrichment batches

Keep quota-sized interactive groups on the RPC lane while sending larger lossless groups through bounded coalescing.

* test(daemon): initialize task fixtures

* perf(ingest): batch post-ingest dispatch

* perf(ingest): widen directory storage waves

Borrow from a full wave when one document would otherwise fall through to single-document storage.

* perf(storage): bound batch writer fanout

Reuse a fixed worker set so batch size no longer creates one thread and payload copy per object.

* perf(ingest): align storage batch drains

Dispatch one configured batch through storage so intermediate waves do not fragment downstream metadata work.

* fix(ingest): commit metadata state atomically

Fold first-version, extracted-title, and embedding-completion state
into existing transactions.

Read committed extraction state so duplicate-content tasks cannot
double-count corpus counters.

* bench(ingest): measure production submission

Drive pipelined files through DocumentIngestionService.
Export dispatch, fingerprint, and enqueue costs through xplan.

* fix(xplan): preserve native failures

Report child signals and bounded stderr before readiness checks so
assertions are not masked as missing traces.

* fix(daemon): preserve embedding success hashes

* fix(daemon): serialize pooled socket shutdown

* fix(daemon): harden batch publication shutdown

* fix(storage): use compat jthread shim

* fix(daemon): avoid poller template shadowing

* fix(search): keep vector pipeline test enabled

* fix: harden shutdown and fallback paths

Demote expected shutdown SQL interruptions, ignore readonly FTS integrity noise, avoid stopped-executor socket hangs, and preserve metadata writer fallback outcomes.
2026-07-17 07:04:30 -04:00
..
doctor perf(ingest): harden daemon batching and shutdown (#58) 2026-07-17 07:04:30 -04:00
add_command_stdin_catch2_test.cpp Stabilize sanitizer lanes and daemon concurrency (#40) 2026-06-01 12:14:43 -04:00
cli_option_isolation_catch2_test.cpp plugin install path update, daemon status fixes, lint run 2025-12-20 18:13:54 -05:00
cli_test_cleanup_listener.cpp fix: suspected deadlock fixes in repair, bugs addressed in request logic. Continued triage from infer output and test failures 2026-04-11 18:45:22 -04:00
cli_utility_coverage_catch2_test.cpp test: lift coverage for core paths 2026-06-22 10:25:28 -04:00
command_registry_catch2_test.cpp fix: cli clean up of old comments and duplicate code. search improvements as we migrate yams to simeon. 2026-04-21 10:20:01 -04:00
completion_command_catch2_test.cpp Stabilize sanitizer lanes and daemon concurrency (#40) 2026-06-01 12:14:43 -04:00
config_command_catch2_test.cpp Stabilize sanitizer lanes and daemon concurrency (#40) 2026-06-01 12:14:43 -04:00
daemon_command_catch2_test.cpp feat: TurboQuant search and ANN compression improvements. CLi client regression fixes 2026-03-25 23:59:42 -04:00
daemon_helpers_pool_catch2_test.cpp fix: clang warning fixes and daemon startup wal guard and fallback regression fix 2026-04-18 17:43:48 -04:00
data_dir_resolution_catch2_test.cpp feat: cleaning up test suite 2026-04-14 10:25:54 -04:00
delete_command_catch2_test.cpp fix: expanding cli test suite, addressing ASAN issues and improving error handling 2026-03-19 13:03:46 -04:00
doctor_command_catch2_test.cpp fix: concurrency and race condition fixes 2026-04-12 11:37:06 -04:00
doctor_repair_renderers_catch2_test.cpp test: lift coverage for core paths 2026-06-22 10:25:28 -04:00
download_command_catch2_test.cpp feat: massive commit. Download logic updates with expanding controls (stop, start, resume etc.) from daemon control. This is used in my archive openclaw agent. This commit also includes work to harden onnxruntime abi access. this should allow loading newer abi's when builds are pinned to 1.23.0. 2026-03-21 17:12:47 -04:00
error_hints_catch2_test.cpp fix: improving socket and chunking reliability and robustness. Added better regression tests and errror logging logic for state connections 2026-02-10 12:25:30 -05:00
graph_explore_presenter_catch2_test.cpp Assertion hardening, metadata correctness, & daemon lifecycle fixes (#41) 2026-06-04 12:53:42 -04:00
graph_helpers_catch2_test.cpp Assertion hardening, metadata correctness, & daemon lifecycle fixes (#41) 2026-06-04 12:53:42 -04:00
graph_query_presenter_catch2_test.cpp Assertion hardening, metadata correctness, & daemon lifecycle fixes (#41) 2026-06-04 12:53:42 -04:00
graph_topology_support_catch2_test.cpp Assertion hardening, metadata correctness, & daemon lifecycle fixes (#41) 2026-06-04 12:53:42 -04:00
grep_command_path_tree_catch2_test.cpp plugin install path update, daemon status fixes, lint run 2025-12-20 18:13:54 -05:00
homebrew_service_formula_catch2_test.cpp fix(ci): test fixes 2026-04-26 01:02:36 -04:00
init_command_catch2_test.cpp fix: cleaning up startup logic and timers as corpus grows 2026-04-22 17:38:35 -04:00
list_command_catch2_test.cpp chore: housekeeping — rm dead code, consolidate MCP tools, add tests, clean docs (#50) 2026-06-16 19:37:24 -04:00
model_command_catch2_test.cpp fix: bug fixes from test regressions and test infrastructure improvements 2026-03-21 19:52:39 -04:00
pipeline_stage_render_catch2_test.cpp fix: onnx pool model scaling improvements, test fixes and UX improvements 2026-01-29 23:18:50 -05:00
plugin_command_catch2_test.cpp Remediate Fold SAST findings 2026-05-27 22:41:44 -04:00
prompt_util_catch2_test.cpp plugin install path update, daemon status fixes, lint run 2025-12-20 18:13:54 -05:00
recommendation_util_catch2_test.cpp removing gtest migrated tests and continuing with test migration 2025-12-16 10:50:18 -05:00
repair_command_catch2_test.cpp feat: persist semantic dedupe suggestions and apply them via repair 2026-04-02 22:33:07 -04:00
session_command_catch2_test.cpp fix: expanding cli test suite, addressing ASAN issues and improving error handling 2026-03-19 13:03:46 -04:00
status_metrics_catch2_test.cpp feat: completion fixes and reduce bottleneck of ingestion on add from cli 2026-04-12 23:45:28 -04:00
stream_heuristics_catch2_test.cpp plugin install path update, daemon status fixes, lint run 2025-12-20 18:13:54 -05:00
time_parser_catch2_test.cpp feat: test coverage improvements. Scaling bug addresses 2026-02-04 20:20:18 -05:00
update_command_catch2_test.cpp perf(metadata): profile write-path batching (#49) 2026-06-12 14:11:49 -04:00
vector_db_util_catch2_test.cpp fix: concurrency and race condition fixes 2026-04-12 11:37:06 -04:00
version_generated_header_catch2_test.cpp fix(ci): stabilize Windows release builds 2026-07-05 15:56:52 -04:00