yams/tests/scripts
Trevon 211db15606
fix(daemon): bound semantic neighbor scores and report startup phase (#334)
Semantic-neighbor maintenance aborted the daemon during startup:
std::clamp<float> asserted '!(__hi < __lo)' because the adaptive cosine
threshold could exceed 1.0 for a legal pair of identical vectors. The same
work was also admitted while the daemon was still initializing, so the
300-second starvation guard forced a pass before readiness.

+ semanticInverseNorm/semanticCosineSimilarity/semanticExplicitThreshold in the
  existing embed policy header, shared by the streamed and corpus branches;
  non-finite vectors or scores produce no neighbor and legal scores are bounded
  before ranking and threshold selection
+ startupMaintenanceEligible() requires ServiceManagerState::Ready, not
  stopping and idle, and is evaluated before
  ResourceGovernor::admitDeferrable(), so an elapsed deferral deadline can no
  longer manufacture missing readiness
+ StartupPhaseTracker (two atomics, no mutex) plus a warn-level init-waiter
  line reporting state, phase and phase_elapsed_ms instead of a debug-level
  state number; a 53-minute startup previously logged nothing actionable
+ regression through the public backfill and corpus-rebuild APIs using a 64-D
  vector whose old float inverse norm rounds its self-cosine above 1
- removed the duplicated inverse-norm and cosine lambdas from EmbeddingService
- renamed __test_setModelProvider/__test_setKgStore to testing_* because they
  used reserved identifiers, across 11 files
- re-anchored 13 pre-existing raw-environment allowlist entries to their new
  line numbers; no new exception was added

Startup is still blocked by corpus-sized memory-sync scans; this change stops
the abort and names the blocking phase, it does not make startup fast.

Signed-off-by: trvon <git@trevon.dev>
2026-10-22 16:48:49 -06:00
..
analyze_retrieval_misses.py feat: adding doctor check for keychain storage of r2 secrets 2026-03-07 20:26:20 -05:00
analyze_simeon_adaptivity.py [04/14] Repository hygiene and reviewable configuration/retrieval contracts (#144) 2026-09-12 10:09:18 -04:00
catch2_allow_all_skipped.py fix(test): harden sanitizer merge blockers 2026-06-29 11:34:02 -04:00
check_benchmark_environment_leaks.py refactor(bench): isolate benchmark controls 2026-08-05 20:53:18 -04:00
check_configuration_authority.py [04/14] Repository hygiene and reviewable configuration/retrieval contracts (#144) 2026-09-12 10:09:18 -04:00
check_experimental_release_source.py fix(ci): build aarch64 Arch packages on an Arch Linux ARM base image 2026-09-24 15:00:32 -06:00
check_forgejo_mirror_workflow.py ci(mirror): expect the git.trevon.dev Forgejo SSH host 2026-09-24 06:23:02 -06:00
check_multi_client_regression.py feat: adding doctor check for keychain storage of r2 secrets 2026-03-07 20:26:20 -05:00
check_portability.py test(portability): reject analyzer shims 2026-08-17 21:43:12 -06:00
check_raw_environment_calls.py test: isolate process environment 2026-08-04 21:31:39 -04:00
check_regression.py fix: tree-diff benchmark regression accounting and stabilize subtree fast-path measurement 2026-04-03 20:45:09 -04:00
check_repository_metadata.py test(metadata): align legacy symbol test cases with schema v39 2026-09-22 09:37:00 -06:00
check_sanitizer_runtime_linkage.py fix(build): let the compiler select the TSan runtime (#326) 2026-10-22 07:12:21 -06:00
configuration_reader_allowlist.txt test(policy): gate configuration authority 2026-08-05 20:53:19 -04:00
delta_retrieval_matrix.py feat: expanding search metrics for manual tuning 2026-03-11 08:57:16 -04:00
diff_retrieval_trace_jsonl.py feat: test suite improvements. Migrating remaining tests to catch2. Improving hnsw for usage in benchmarks 2026-03-22 07:56:54 -04:00
matrix_retrieval_opt_jsonl.py feat: expanding search metrics for manual tuning 2026-03-11 08:57:16 -04:00
portability_allowlist.txt fix(daemon): bound semantic neighbor scores and report startup phase (#334) 2026-10-22 16:48:49 -06:00
production_environment_keys.txt test(policy): drop environment keys removed with the symbol pipeline 2026-09-22 17:39:17 -06:00
raw_environment_allowlist.txt test(policy): allowlist the per-process XDG_STATE_HOME setenv in catch2_main (#312) 2026-10-16 09:43:38 -06:00
report_config_key_usage.py [04/14] Repository hygiene and reviewable configuration/retrieval contracts (#144) 2026-09-12 10:09:18 -04:00
report_meson_failures.py fix(tests): replace frozen expectations and harden release gates (#323) 2026-10-19 19:16:57 -06:00
run_multi_client_local_vs_r2_benchmark.py feat: reliability improvements for daemon lifecycle, submodule bumps, plugin improvements and search tuning optimizations based on benchmarks 2026-03-09 19:38:15 -04:00
run_simeon_adaptivity_matrix.sh chore: stabilize CI, faiss, metadata, docker, and simeon (#25) 2026-05-07 21:07:59 -04:00
run_topology_retrieval_matrix.sh feat: bumping simeon, improving graph building, clustering, configuration tuning of said system and updating benchmark files. Additional fixes for daemon readiness and status return underload. 2026-04-20 09:31:45 -04:00
run_topology_scaling.sh docs: reduce documentation surface 2026-07-29 13:02:15 -04:00
run_topology_variant_corpus_sweep.sh chore: stabilize CI, faiss, metadata, docker, and simeon (#25) 2026-05-07 21:07:59 -04:00
summarize_multi_client_jsonl.py feat: reliability improvements for daemon lifecycle, submodule bumps, plugin improvements and search tuning optimizations based on benchmarks 2026-03-09 19:38:15 -04:00
summarize_retrieval_opt_jsonl.py fix: harden CI and metadata stability (#48) 2026-06-11 16:42:54 -04:00
test_check_benchmark_environment_leaks.py refactor(bench): isolate benchmark controls 2026-08-05 20:53:18 -04:00
test_check_configuration_authority.py [04/14] Repository hygiene and reviewable configuration/retrieval contracts (#144) 2026-09-12 10:09:18 -04:00
test_check_portability.py test(portability): reject analyzer shims 2026-08-17 21:43:12 -06:00
test_check_raw_environment_calls.py style(tests): align validation formatting 2026-08-12 12:29:12 -06:00
test_generate_release_manifest.py ci: isolate experimental package repositories 2026-09-04 17:14:43 -06:00
test_git_environment_isolation.py fix: preserve cancellation across worker restart 2026-09-14 00:58:19 -06:00
test_package_upgrade_validation.py fix(tests): replace frozen expectations and harden release gates (#323) 2026-10-19 19:16:57 -06:00
test_publish_repository.py fix(ci): drop --force from wrangler r2 object put 2026-09-30 14:48:44 -06:00
test_reconcile_promotion_pr.py ci(release): refuse stable releases from non-version refs 2026-09-22 12:18:20 -06:00
test_report_config_key_usage.py [04/14] Repository hygiene and reviewable configuration/retrieval contracts (#144) 2026-09-12 10:09:18 -04:00
test_report_meson_failures.py fix(tests): replace frozen expectations and harden release gates (#323) 2026-10-19 19:16:57 -06:00
test_repository_metadata_scan.py fix: preserve cancellation across worker restart 2026-09-14 00:58:19 -06:00
test_serve_delegation.py fix(ci): repair audited platform regressions 2026-09-13 20:48:30 -06:00
test_serve_runtime_environment.py fix(ci): repair audited platform regressions 2026-09-13 20:48:30 -06:00
test_validate_release_candidate.py ci(release): decouple draft promotion and enforce non-squash merge policy 2026-09-22 07:58:31 -06:00
visualize_results.py v0.1.0 2025-08-12 20:52:21 -04:00