brainlayer 1.5.97__tar.gz → 1.5.98__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {brainlayer-1.5.97 → brainlayer-1.5.98}/PKG-INFO +6 -6
- {brainlayer-1.5.97 → brainlayer-1.5.98}/README.md +5 -5
- {brainlayer-1.5.97 → brainlayer-1.5.98}/pyproject.toml +1 -1
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/install.sh +6 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/server.json +2 -2
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/__init__.py +1 -1
- brainlayer-1.5.98/src/brainlayer/_build.py +1 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/cli/__init__.py +11 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/health_facts.py +14 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/health_verdict.py +61 -9
- brainlayer-1.5.98/src/brainlayer/observability_indexes.py +84 -0
- brainlayer-1.5.97/src/brainlayer/_build.py +0 -1
- {brainlayer-1.5.97 → brainlayer-1.5.98}/.gitignore +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/LICENSE +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/brainlayer-version-check.sh +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/hotlane_brainbar_daemon.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/backup-daily.sh +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/brainlayer-env-run.sh +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/brainlayer.env.example +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.backup-daily.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.daemon.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.decay.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.drain.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.health-check.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.hotlane-brainbar.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.index.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.jsonl-backup.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.log-cap.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.maintenance-nightly.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.maintenance-weekly.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.maintenance.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.observability.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.p0-counter.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.repair-fts.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.t3-ingest.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.throughput-watchdog.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.tier0-watchdog.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.wal-checkpoint.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.watch.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.etanhey.brainlayer-fleet-watchdog.plist +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/fleet-watchdog.sh +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/jsonl-backup.sh +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/throughput-watchdog.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/release-verify-signatures.sh +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/tier0-watchdog.sh +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/__main__.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/_helpers.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/agent_profiles.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/agent_provenance.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/alarm.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/archive_collapse.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/archive_lifecycle.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/backup_daily.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/backup_retention_invariant.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/badge_state.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/bitemporal.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/brainbar_activation.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/brainbar_auto_activation.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/brainbar_hybrid_helper.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/brainbar_identity.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/cachedelete_purge.swift +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/calibrate.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/chunk_origin.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/chunk_origin_backfill.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/chunk_origin_wipe.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/chunk_write.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/classify.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/claude_paths.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/cli/wizard.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/cli_jobs.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/cli_new.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/cloud_backfill.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/clustering.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/codex_zst.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/component_jobs.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/config.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/consolidation_plan.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/content_class.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/content_hash_repair.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/correction_judge.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/data/agents_registry.yaml +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/data/sandbox_seeds/skill-eval-baseline.json +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/db_shrink.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/decay.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/decay_backfill.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/decay_job.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/dedupe.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/dedupe_merge.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/deploy_drift.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/disk_space.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/doctor.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/drain.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/drain_liveness.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/drive_credentials.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/embeddings.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/engine.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/enrichment_replay.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/__init__.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/abcde_enrich_runner.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/abcde_variants.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/abcde_variants.yaml +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/benchmark.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/enrichment_gold.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/enrichment_graders.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/enrichment_judge.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/enrichment_llm_judge.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/enrichment_quality_benchmark.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/experiment_store.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/fixtures/README.md +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/labeling/enrichment-labeler.html +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/phoenix_gate/__init__.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/phoenix_gate/__main__.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/phoenix_gate/baseline_store.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/phoenix_gate/cli.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/phoenix_gate/models.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/phoenix_gate/phoenix_client.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/phoenix_gate/regression_gate.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/phoenix_gate/triggers.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/eval/pilot_artifact_report.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/fallback_replay.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/git_learning.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/health_check.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/hook_python.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/hooks/__init__.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/hooks/indexer.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/hotlane_budget.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/import_sweep.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/index_admission.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/index_budget.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/index_completeness.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/index_new.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/index_watchdog.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/ingest/__init__.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/ingest/codex.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/ingest/codex_manifest.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/ingest/t3.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/ingest_denylist.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/ingest_guard.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/isolation_proof.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/job_alerts.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/job_lifecycle_health.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/jobs.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/jsonl_backup.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/kg/__init__.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/kg_cleanup.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/kg_judge.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/kg_promotion.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/kg_repo.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/kg_review_session.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/kg_session_finish.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/kg_session_harvest.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/launchd_consolidation.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/launchd_install.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/launchd_primitive.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/launchd_revert.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/launcher_policy_reconcile.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/lexical_defense.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/lexical_defense_dictionary.json +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/linkedin_import.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/log_cap.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/maintenance.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/maintenance_calendar.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/maintenance_control.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/maintenance_upload_recovery.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/mcp/__init__.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/mcp/_format.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/mcp/_shared.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/mcp/enrich_handler.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/mcp/entity_handler.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/mcp/palette.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/mcp/search_handler.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/mcp/store_handler.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/mcp/tags_handler.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/mcp_socket_config.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/mcp_stdio_bridge.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/memory_types.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/migrate.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/migration_custody.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/migration_journal.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/migration_runtime.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/notification_policy.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/observability_backup.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/observability_surface.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/observability_transport.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/p0_longitudinal_count.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/parent_death.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/paths.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pause.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/phonetic.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/__init__.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/agent_enrichment.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/analyze_communication.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/batch_extraction.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/brain_graph.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/chat_tags.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/chunk.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/classify.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/cloud_scrub.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/cluster_sampling.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/code_intelligence.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/correction_detection.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/correction_mining.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/digest.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/enrichment_prompts.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/enrichment_results.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/enrichment_tiers.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/entity_extraction.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/entity_resolution.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/extract.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/extract_claude_desktop.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/extract_corrections.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/extract_markdown.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/extract_whatsapp.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/frustration_mining.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/git_overlay.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/kg_extraction.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/kg_extraction_groq.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/longitudinal_analyzer.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/obsidian_export.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/operation_grouping.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/plan_linking.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/rate_limiter.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/relation_backfill.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/relation_verification.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/sanitize.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/secret_scrub.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/semantic_style.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/sentiment.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/session_history.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/style_embed.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/style_index.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/tag_entity_promotion.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/temporal_chains.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/time_batcher.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/unified_timeline.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/pipeline/write_queue.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/policy_reconcile.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/provenance.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/provenance_autosupersede.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/provenance_integration.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/queue_io.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/queue_merge.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/readonly_snapshot.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/reembed_backfill.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/retired_services.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/runtime_store.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/sandbox_db.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/schema_ddl_ledger.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/scoping.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/scrub_at_rest.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/search_fanout.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/search_profile.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/search_repo.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/search_response.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/service_supervisor.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/session_repo.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/setup.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/socket_hygiene.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/source_class_migration.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/spotlight.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/storage.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/store.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/supervisor_adapters.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/supervisor_child.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/supervisor_diagnostics.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/supervisor_guard.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/supervisor_jobs.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/system_prompt_guard.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/t3_linkage_alarm.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/t3_provenance.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/t3_sources.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/tag_normalization.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/taxonomy.json +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/telemetry.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/timestamp_iso.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/types.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/vector_store.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/wal_checkpoint.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/watcher.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/watcher_bridge.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/writer_policy.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/writer_telemetry.py +0 -0
- {brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/zstd_stream.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: brainlayer
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.98
|
|
4
4
|
Summary: Persistent local memory for AI agents — 16 BrainBar MCP tools, semantic search, knowledge graph, SQLite
|
|
5
5
|
Project-URL: Homepage, https://brainlayer.etanheyman.com
|
|
6
6
|
Project-URL: Repository, https://github.com/EtanHey/brainlayer
|
|
@@ -232,7 +232,7 @@ graph LR
|
|
|
232
232
|
C --> D["SQLite + sqlite-vec<br/>single .db file"]
|
|
233
233
|
B --> KG["Knowledge Graph<br/>entities + relations"]
|
|
234
234
|
KG --> D
|
|
235
|
-
E["JSONL conversations"] --> W["Real-time Watcher<br
|
|
235
|
+
E["JSONL conversations"] --> W["Real-time Watcher<br/>≥30s poll interval"]
|
|
236
236
|
W --> D
|
|
237
237
|
I["BrainBar UI<br/>NSStatusItem + NSPopover"] -->|UDS /tmp/brainbar.sock| BB["BrainBarDaemon<br/>MCP + brain bus"]
|
|
238
238
|
BB -->|MCP socket protocol| B
|
|
@@ -245,7 +245,7 @@ Memory indexing, search, and the local knowledge graph run on-device. Axiom tele
|
|
|
245
245
|
| **Storage** | SQLite + [sqlite-vec](https://github.com/asg017/sqlite-vec), WAL mode, single `.db` file |
|
|
246
246
|
| **Embeddings** | `bge-large-en-v1.5` (1024 dims, CPU/MPS) |
|
|
247
247
|
| **Search** | Vector similarity + FTS5, merged with Reciprocal Rank Fusion |
|
|
248
|
-
| **Watcher** | Real-time JSONL indexing (
|
|
248
|
+
| **Watcher** | Real-time JSONL indexing (≥30s poll interval), 4-layer content filters, offset-persistent |
|
|
249
249
|
| **Knowledge Graph** | Entities, relations, co-occurrence extraction, person lookup |
|
|
250
250
|
|
|
251
251
|
## Why BrainLayer?
|
|
@@ -255,7 +255,7 @@ Memory indexing, search, and the local knowledge graph run on-device. Axiom tele
|
|
|
255
255
|
| **MCP tools** | 16 | 1 | 1 | 0 |
|
|
256
256
|
| **Local-first** | SQLite | Cloud-first | Cloud-only | Docker+PG |
|
|
257
257
|
| **Zero infra** | `pip install` | API key | API key | Docker |
|
|
258
|
-
| **Real-time indexing** |
|
|
258
|
+
| **Real-time indexing** | ≥30s poll interval | No | No | No |
|
|
259
259
|
| **Knowledge lifecycle** | Supersede/archive | Auto-dedup | No | No |
|
|
260
260
|
| **Open source** | Apache 2.0 | Apache 2.0 | Source-available | Apache 2.0 |
|
|
261
261
|
|
|
@@ -337,7 +337,7 @@ Enrichment work listed here is retired; history: [CHANGELOG](CHANGELOG.md).
|
|
|
337
337
|
| Source | Indexer |
|
|
338
338
|
|--------|---------|
|
|
339
339
|
| Claude Code | `brainlayer index [DIR]` (JSONL, defaults to `~/.claude/projects/`) |
|
|
340
|
-
| Claude Code (real-time) | `brainlayer watch` LaunchAgent (
|
|
340
|
+
| Claude Code (real-time) | `brainlayer watch` LaunchAgent (≥30s poll interval, 4-layer filters) |
|
|
341
341
|
| Codex CLI | `brainlayer ingest-codex` |
|
|
342
342
|
| T3 threads | `brainlayer ingest-t3` |
|
|
343
343
|
| YouTube | `python scripts/index_youtube.py` |
|
|
@@ -370,7 +370,7 @@ brainlayer setup # Create ~/.config/brainlayer/brainlayer.env
|
|
|
370
370
|
brainlayer setup --launchd # Create config and install launchd agents
|
|
371
371
|
brainlayer init # Interactive setup wizard
|
|
372
372
|
brainlayer index # Batch index conversations
|
|
373
|
-
brainlayer watch # Real-time watcher (persistent,
|
|
373
|
+
brainlayer watch # Real-time watcher (persistent, ≥30s poll interval)
|
|
374
374
|
brainlayer search "query" # Semantic + keyword search
|
|
375
375
|
brainlayer stats # Database statistics
|
|
376
376
|
brainlayer brain-export # Brain graph JSON for visualization
|
|
@@ -157,7 +157,7 @@ graph LR
|
|
|
157
157
|
C --> D["SQLite + sqlite-vec<br/>single .db file"]
|
|
158
158
|
B --> KG["Knowledge Graph<br/>entities + relations"]
|
|
159
159
|
KG --> D
|
|
160
|
-
E["JSONL conversations"] --> W["Real-time Watcher<br
|
|
160
|
+
E["JSONL conversations"] --> W["Real-time Watcher<br/>≥30s poll interval"]
|
|
161
161
|
W --> D
|
|
162
162
|
I["BrainBar UI<br/>NSStatusItem + NSPopover"] -->|UDS /tmp/brainbar.sock| BB["BrainBarDaemon<br/>MCP + brain bus"]
|
|
163
163
|
BB -->|MCP socket protocol| B
|
|
@@ -170,7 +170,7 @@ Memory indexing, search, and the local knowledge graph run on-device. Axiom tele
|
|
|
170
170
|
| **Storage** | SQLite + [sqlite-vec](https://github.com/asg017/sqlite-vec), WAL mode, single `.db` file |
|
|
171
171
|
| **Embeddings** | `bge-large-en-v1.5` (1024 dims, CPU/MPS) |
|
|
172
172
|
| **Search** | Vector similarity + FTS5, merged with Reciprocal Rank Fusion |
|
|
173
|
-
| **Watcher** | Real-time JSONL indexing (
|
|
173
|
+
| **Watcher** | Real-time JSONL indexing (≥30s poll interval), 4-layer content filters, offset-persistent |
|
|
174
174
|
| **Knowledge Graph** | Entities, relations, co-occurrence extraction, person lookup |
|
|
175
175
|
|
|
176
176
|
## Why BrainLayer?
|
|
@@ -180,7 +180,7 @@ Memory indexing, search, and the local knowledge graph run on-device. Axiom tele
|
|
|
180
180
|
| **MCP tools** | 16 | 1 | 1 | 0 |
|
|
181
181
|
| **Local-first** | SQLite | Cloud-first | Cloud-only | Docker+PG |
|
|
182
182
|
| **Zero infra** | `pip install` | API key | API key | Docker |
|
|
183
|
-
| **Real-time indexing** |
|
|
183
|
+
| **Real-time indexing** | ≥30s poll interval | No | No | No |
|
|
184
184
|
| **Knowledge lifecycle** | Supersede/archive | Auto-dedup | No | No |
|
|
185
185
|
| **Open source** | Apache 2.0 | Apache 2.0 | Source-available | Apache 2.0 |
|
|
186
186
|
|
|
@@ -262,7 +262,7 @@ Enrichment work listed here is retired; history: [CHANGELOG](CHANGELOG.md).
|
|
|
262
262
|
| Source | Indexer |
|
|
263
263
|
|--------|---------|
|
|
264
264
|
| Claude Code | `brainlayer index [DIR]` (JSONL, defaults to `~/.claude/projects/`) |
|
|
265
|
-
| Claude Code (real-time) | `brainlayer watch` LaunchAgent (
|
|
265
|
+
| Claude Code (real-time) | `brainlayer watch` LaunchAgent (≥30s poll interval, 4-layer filters) |
|
|
266
266
|
| Codex CLI | `brainlayer ingest-codex` |
|
|
267
267
|
| T3 threads | `brainlayer ingest-t3` |
|
|
268
268
|
| YouTube | `python scripts/index_youtube.py` |
|
|
@@ -295,7 +295,7 @@ brainlayer setup # Create ~/.config/brainlayer/brainlayer.env
|
|
|
295
295
|
brainlayer setup --launchd # Create config and install launchd agents
|
|
296
296
|
brainlayer init # Interactive setup wizard
|
|
297
297
|
brainlayer index # Batch index conversations
|
|
298
|
-
brainlayer watch # Real-time watcher (persistent,
|
|
298
|
+
brainlayer watch # Real-time watcher (persistent, ≥30s poll interval)
|
|
299
299
|
brainlayer search "query" # Semantic + keyword search
|
|
300
300
|
brainlayer stats # Database statistics
|
|
301
301
|
brainlayer brain-export # Brain graph JSON for visualization
|
|
@@ -426,6 +426,12 @@ case "$BRAINLAYER_INSTALL_ACTION" in
|
|
|
426
426
|
exec "$consolidation_python" -m brainlayer.launchd_install consolidation-rollback --home "$HOME" \
|
|
427
427
|
--domain "${BRAINLAYER_LAUNCHD_DOMAIN:-gui/$UID}"
|
|
428
428
|
fi
|
|
429
|
+
BRAINLAYER_ENV_FILE="$BRAINLAYER_ENV_FILE" BRAINLAYER_SKIP_DISABLE_GATES=1 \
|
|
430
|
+
/bin/bash "$SCRIPT_DIR/brainlayer-env-run.sh" "$consolidation_python" \
|
|
431
|
+
-m brainlayer observability --ensure-indexes || {
|
|
432
|
+
ensure_status=$?
|
|
433
|
+
echo "WARN: observability ensure failed (rc=$ensure_status; see error above); continuing consolidate; producer retains its bounded unmeasurable fallback" >&2
|
|
434
|
+
}
|
|
429
435
|
exec "$consolidation_python" -m brainlayer.launchd_install consolidate --home "$HOME" \
|
|
430
436
|
--domain "${BRAINLAYER_LAUNCHD_DOMAIN:-gui/$UID}" --templates "$SCRIPT_DIR" \
|
|
431
437
|
--env-file "$BRAINLAYER_ENV_FILE" --python "$consolidation_python" --keg "$BRAINLAYER_CURRENT_KEG"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.etanhey/brainlayer",
|
|
4
4
|
"title": "BrainLayer",
|
|
5
5
|
"description": "Persistent local memory for AI agents \u2014 semantic search, knowledge graph, and 16 BrainBar MCP tools with ToolAnnotations over SQLite.",
|
|
6
|
-
"version": "1.5.
|
|
6
|
+
"version": "1.5.98",
|
|
7
7
|
"websiteUrl": "https://brainlayer.etanheyman.com",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/EtanHey/brainlayer",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"registryType": "pypi",
|
|
15
15
|
"registryBaseUrl": "https://pypi.org",
|
|
16
16
|
"identifier": "brainlayer",
|
|
17
|
-
"version": "1.5.
|
|
17
|
+
"version": "1.5.98",
|
|
18
18
|
"runtimeHint": "pipx",
|
|
19
19
|
"transport": {
|
|
20
20
|
"type": "stdio"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
__version__ = "1.5.
|
|
5
|
+
__version__ = "1.5.98"
|
|
6
6
|
# Git sha the distributed package was built from; stamped by the release build, None in a source tree.
|
|
7
7
|
# scripts/sprint_gate.py reads it in "keg" mode to prove the served package is the code under test.
|
|
8
8
|
# No runtime `str | None` annotation: launchd/install.sh imports this under /usr/bin/python3 (3.9).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
BUILD_SHA = "60ae893b615a1cc792a8adc32de5d3f3441b935e"
|
|
@@ -603,10 +603,21 @@ class _CalendarIndexCheckpoint:
|
|
|
603
603
|
|
|
604
604
|
@app.command("observability")
|
|
605
605
|
def observability_command(
|
|
606
|
+
ensure_indexes: bool = typer.Option(
|
|
607
|
+
False, "--ensure-indexes", help="Build indexes explicitly while services are stopped."
|
|
608
|
+
),
|
|
606
609
|
write: bool = typer.Option(False, "--write", help="Write observability.json beside the resolved database."),
|
|
607
610
|
stdout: bool = typer.Option(False, "--stdout", help="Print the observability document instead of writing it."),
|
|
608
611
|
) -> None:
|
|
609
612
|
"""Produce the versioned BrainLayer observability document."""
|
|
613
|
+
if ensure_indexes:
|
|
614
|
+
if write or stdout:
|
|
615
|
+
raise typer.BadParameter("--ensure-indexes cannot be combined with --write or --stdout")
|
|
616
|
+
from ..observability_indexes import ensure_observability_indexes
|
|
617
|
+
from ..paths import get_db_path
|
|
618
|
+
|
|
619
|
+
typer.echo(json.dumps(ensure_observability_indexes(get_db_path()), sort_keys=True))
|
|
620
|
+
return
|
|
610
621
|
if write and stdout:
|
|
611
622
|
raise typer.BadParameter("choose either --write or --stdout")
|
|
612
623
|
from ..observability_surface import write_document
|
|
@@ -11,6 +11,7 @@ from __future__ import annotations
|
|
|
11
11
|
import json
|
|
12
12
|
import os
|
|
13
13
|
import sqlite3
|
|
14
|
+
import sys
|
|
14
15
|
import threading
|
|
15
16
|
import time
|
|
16
17
|
from collections.abc import Callable, Iterable, Mapping
|
|
@@ -466,6 +467,7 @@ def collect_facts(
|
|
|
466
467
|
"""
|
|
467
468
|
from .backup_daily import _backup_log_path
|
|
468
469
|
from .drive_credentials import resolve_paths
|
|
470
|
+
from .health_check import _default_command_runner
|
|
469
471
|
from .pause import pause_applies_to_label, pause_sentinel_state
|
|
470
472
|
|
|
471
473
|
prior = prior if isinstance(prior, Mapping) else {}
|
|
@@ -478,8 +480,15 @@ def collect_facts(
|
|
|
478
480
|
receipts = read_receipts(config.backup_log_path or _backup_log_path(None, db_path=config.db_path))
|
|
479
481
|
return backup_facts(receipts), reclaim_capability(receipts, staging)
|
|
480
482
|
|
|
483
|
+
wall_lag = (datetime.now(UTC) - now).total_seconds()
|
|
484
|
+
awake_sample = time.monotonic() - wall_lag
|
|
481
485
|
got = _run_bounded(
|
|
482
486
|
{
|
|
487
|
+
"boot": lambda: (
|
|
488
|
+
_default_command_runner(["/usr/sbin/sysctl", "-n", "kern.bootsessionuuid"])
|
|
489
|
+
if sys.platform == "darwin" and abs(wall_lag) < 600
|
|
490
|
+
else None
|
|
491
|
+
),
|
|
483
492
|
"backup": backup_job,
|
|
484
493
|
"transcripts": lambda: transcript_facts(read_receipts(config.jsonl_backup_log_path)),
|
|
485
494
|
"drive_token": lambda: read_drive_token(config.drive_token_path or resolve_paths()[0]),
|
|
@@ -572,8 +581,13 @@ def collect_facts(
|
|
|
572
581
|
if backup is not UNOBSERVED
|
|
573
582
|
else dict.fromkeys(("backup_local_verified_at", "backup_offsite_verified_at", "integrity"), UNOBSERVED)
|
|
574
583
|
)
|
|
584
|
+
boot = got["boot"]
|
|
585
|
+
boot_session = boot.stdout.strip() if getattr(boot, "returncode", None) == 0 else None
|
|
586
|
+
awake_clock = awake_sample if boot_session else None
|
|
575
587
|
facts = Facts(
|
|
576
588
|
now=now,
|
|
589
|
+
awake_clock_s=awake_clock,
|
|
590
|
+
boot_session=boot_session,
|
|
577
591
|
**backup_kwargs,
|
|
578
592
|
transcripts_verified_at=transcripts[0] if transcripts is not UNOBSERVED else UNOBSERVED,
|
|
579
593
|
drive_auth=drive_auth,
|
|
@@ -22,7 +22,9 @@ skipped job while a verified backup exists is a note, never a dot. So:
|
|
|
22
22
|
access loss stays red until Drive access is observed ``ok``.
|
|
23
23
|
- Wake grace: after a monitoring gap, a backup that just crossed red gets one catch-up window,
|
|
24
24
|
whose deadline is persisted and never renewed by a later gap. Heartbeat and stall clocks
|
|
25
|
-
|
|
25
|
+
subtract confirmed suspension overlapping their own timestamp windows. Clock pairs establish
|
|
26
|
+
total suspension within a tick interval, so only guaranteed overlap is credited. Without
|
|
27
|
+
same-boot clock evidence, pipes retain the older bounded monitoring-gap grace.
|
|
26
28
|
"""
|
|
27
29
|
|
|
28
30
|
from __future__ import annotations
|
|
@@ -102,6 +104,8 @@ class Facts:
|
|
|
102
104
|
"""
|
|
103
105
|
|
|
104
106
|
now: datetime
|
|
107
|
+
awake_clock_s: float | None = None
|
|
108
|
+
boot_session: str | None = None
|
|
105
109
|
backup_local_verified_at: Any = UNOBSERVED
|
|
106
110
|
backup_snapshot_local_removed: bool = False
|
|
107
111
|
backup_offsite_verified_at: Any = UNOBSERVED
|
|
@@ -298,9 +302,16 @@ def _graced_age(
|
|
|
298
302
|
if deadline is not None:
|
|
299
303
|
# Keep expired windows too: another gap in this episode cannot grant a new one.
|
|
300
304
|
keep = {"grace_clock": _iso(start), "grace_started_at": _iso(grace_at), "grace_until": _iso(deadline)}
|
|
301
|
-
|
|
305
|
+
sleep_offset = 0.0
|
|
306
|
+
for window in prior.get("suspensions", ()):
|
|
307
|
+
left, right = _parse(window["from"]), _parse(window["to"])
|
|
308
|
+
# The pair locates total suspension inside [left, right], not its exact edges.
|
|
309
|
+
# Credit only overlap guaranteed to fall within this heartbeat/stall's own age.
|
|
310
|
+
outside = max(0.0, (start - left).total_seconds()) + max(0.0, (right - now).total_seconds())
|
|
311
|
+
sleep_offset += max(0.0, window["seconds"] - outside)
|
|
312
|
+
true_age = max(0.0, (now - start).total_seconds() - sleep_offset)
|
|
302
313
|
effective = max(start, grace_at) if grace_at is not None and deadline is not None and now <= deadline else start
|
|
303
|
-
age = max(0.0, (now - effective).total_seconds())
|
|
314
|
+
age = min(true_age, max(0.0, (now - effective).total_seconds()))
|
|
304
315
|
state = _age_state(age, amber, red)
|
|
305
316
|
graced = _RANK[state] < _RANK[_age_state(true_age, amber, red)]
|
|
306
317
|
note = f"{what} {_hours(true_age) if true_age >= HOURS else f'{true_age / 60:.0f} min'}"
|
|
@@ -351,10 +362,24 @@ def _drive_auth(drive: Any, prior: Mapping[str, Any]) -> _Raw:
|
|
|
351
362
|
|
|
352
363
|
|
|
353
364
|
def _raw_checks(
|
|
354
|
-
facts: Facts,
|
|
365
|
+
facts: Facts,
|
|
366
|
+
prior: Mapping[str, Mapping[str, Any]],
|
|
367
|
+
t: Thresholds,
|
|
368
|
+
resumed_at: datetime | None,
|
|
369
|
+
suspensions: list[dict[str, Any]],
|
|
370
|
+
confirmed_clock: bool,
|
|
355
371
|
) -> dict[str, _Raw]:
|
|
356
372
|
now = facts.now
|
|
357
|
-
|
|
373
|
+
|
|
374
|
+
def p(name):
|
|
375
|
+
saved = dict(prior.get(name, {}))
|
|
376
|
+
saved["suspensions"] = suspensions
|
|
377
|
+
if confirmed_clock:
|
|
378
|
+
# Pipe grace keys are separate from backup catch_up_until, which survives.
|
|
379
|
+
for key in ("grace_clock", "grace_started_at", "grace_until"):
|
|
380
|
+
saved.pop(key, None)
|
|
381
|
+
return saved
|
|
382
|
+
|
|
358
383
|
raw = {
|
|
359
384
|
"backup_local": _verified_age(
|
|
360
385
|
facts.backup_local_verified_at,
|
|
@@ -500,11 +525,31 @@ def evaluate(facts: Facts, prior: Mapping[str, Any] | None = None, thresholds: T
|
|
|
500
525
|
prior_checks = prior.get("checks") if isinstance(prior.get("checks"), Mapping) else {}
|
|
501
526
|
ticked = _parse(prior.get("ticked_at"))
|
|
502
527
|
resumed_at = _parse(prior.get("resumed_at"))
|
|
503
|
-
|
|
504
|
-
|
|
528
|
+
confirmed_clock = False
|
|
529
|
+
suspensions = [
|
|
530
|
+
w
|
|
531
|
+
for w in prior.get("suspensions", ())
|
|
532
|
+
if _parse(w.get("to")) is not None and (now - _parse(w["to"])).total_seconds() < 86400
|
|
533
|
+
]
|
|
534
|
+
previous_awake = prior.get("awake_clock_s")
|
|
535
|
+
if (
|
|
536
|
+
ticked is not None
|
|
537
|
+
and facts.awake_clock_s is not None
|
|
538
|
+
and previous_awake is not None
|
|
539
|
+
and facts.boot_session is not None
|
|
540
|
+
and facts.boot_session == prior.get("boot_session")
|
|
541
|
+
and facts.awake_clock_s >= previous_awake
|
|
542
|
+
):
|
|
543
|
+
confirmed_clock = True
|
|
544
|
+
suspended = (now - ticked).total_seconds() - (facts.awake_clock_s - previous_awake)
|
|
545
|
+
if suspended > 5:
|
|
546
|
+
suspensions.append({"from": _iso(ticked), "to": _iso(now), "seconds": suspended})
|
|
547
|
+
resumed_at = now
|
|
548
|
+
elif ticked is not None and (now - ticked).total_seconds() > t.sleep_gap_s:
|
|
549
|
+
resumed_at = now
|
|
505
550
|
if resumed_at is not None and (now - resumed_at).total_seconds() > t.wake_grace_s:
|
|
506
551
|
resumed_at = None
|
|
507
|
-
raw = _raw_checks(facts, prior_checks, t, resumed_at)
|
|
552
|
+
raw = _raw_checks(facts, prior_checks, t, None if confirmed_clock else resumed_at, suspensions, confirmed_clock)
|
|
508
553
|
|
|
509
554
|
checks: list[Check] = []
|
|
510
555
|
state_checks: dict[str, Any] = {}
|
|
@@ -587,7 +632,14 @@ def evaluate(facts: Facts, prior: Mapping[str, Any] | None = None, thresholds: T
|
|
|
587
632
|
dot=dot,
|
|
588
633
|
checks=tuple(checks),
|
|
589
634
|
notes=tuple(facts.notes),
|
|
590
|
-
state={
|
|
635
|
+
state={
|
|
636
|
+
"ticked_at": _iso(now),
|
|
637
|
+
"suspensions": suspensions,
|
|
638
|
+
"awake_clock_s": facts.awake_clock_s,
|
|
639
|
+
"boot_session": facts.boot_session,
|
|
640
|
+
"resumed_at": _iso(resumed_at),
|
|
641
|
+
"checks": state_checks,
|
|
642
|
+
},
|
|
591
643
|
)
|
|
592
644
|
|
|
593
645
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""Explicit install-time index build; runtime opens never migrate these indexes."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import sqlite3
|
|
5
|
+
import sys
|
|
6
|
+
import time
|
|
7
|
+
from contextlib import closing
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
from .disk_space import measure_disk_space
|
|
11
|
+
|
|
12
|
+
INDEXES = (
|
|
13
|
+
"CREATE INDEX IF NOT EXISTS idx_chunks_observability_time ON chunks (datetime(created_at) DESC, id)",
|
|
14
|
+
"CREATE INDEX IF NOT EXISTS idx_chunks_observability_source ON chunks (source_class, created_at)",
|
|
15
|
+
"CREATE INDEX IF NOT EXISTS idx_chunks_observability_author ON chunks "
|
|
16
|
+
"(archived_at, provenance_class, source_class, source_file, created_at)",
|
|
17
|
+
)
|
|
18
|
+
REQUIRED_COLUMNS = frozenset(("id", "created_at", "source_class", "archived_at", "provenance_class", "source_file"))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def ensure_observability_indexes(path: Path) -> dict:
|
|
22
|
+
"""Run with writers stopped; WAL readers may retain checkpoint frames."""
|
|
23
|
+
started = time.monotonic()
|
|
24
|
+
with closing(
|
|
25
|
+
sqlite3.connect(path.resolve().as_uri() + "?mode=rw", uri=True, isolation_level=None, timeout=300)
|
|
26
|
+
) as db:
|
|
27
|
+
columns = {row[1] for row in db.execute("PRAGMA table_info(chunks)")}
|
|
28
|
+
missing = sorted(REQUIRED_COLUMNS - columns)
|
|
29
|
+
if missing:
|
|
30
|
+
return {"status": "skipped", "reason": "chunks columns missing: " + ", ".join(missing)}
|
|
31
|
+
names = {row[0] for row in db.execute("SELECT name FROM sqlite_master WHERE type='index'")}
|
|
32
|
+
if all(sql.split()[5] in names for sql in INDEXES):
|
|
33
|
+
return {"status": "present", "elapsed_seconds": time.monotonic() - started}
|
|
34
|
+
count = db.execute("SELECT COUNT(*) FROM chunks").fetchone()[0]
|
|
35
|
+
# Sample key widths, with headroom for b-tree pages, expression/id duplication and sorting.
|
|
36
|
+
width = db.execute(
|
|
37
|
+
"SELECT COALESCE(MAX(n), 0) FROM (SELECT "
|
|
38
|
+
"length(CAST(COALESCE(id,'') || COALESCE(created_at,'') || COALESCE(source_class,'') || "
|
|
39
|
+
"COALESCE(archived_at,'') || COALESCE(provenance_class,'') || COALESCE(source_file,'') AS BLOB)) n "
|
|
40
|
+
"FROM chunks LIMIT 4096)"
|
|
41
|
+
).fetchone()[0]
|
|
42
|
+
estimated = max(512 * 1024**2, count * (width + 128) * 2)
|
|
43
|
+
required = 2 * estimated + 2 * 1024**3
|
|
44
|
+
space = measure_disk_space(path)
|
|
45
|
+
if space.free_now_bytes < required:
|
|
46
|
+
return {
|
|
47
|
+
"status": "skipped",
|
|
48
|
+
"reason": "insufficient free-now disk space",
|
|
49
|
+
"required_bytes": required,
|
|
50
|
+
"free_now_bytes": space.free_now_bytes,
|
|
51
|
+
"estimated_index_bytes": estimated,
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
checkpoints = []
|
|
55
|
+
|
|
56
|
+
def checkpoint(phase):
|
|
57
|
+
try:
|
|
58
|
+
result = db.execute("PRAGMA wal_checkpoint(PASSIVE)").fetchone()
|
|
59
|
+
state = "busy" if result[0] or result[1] != result[2] else "complete"
|
|
60
|
+
record = {"phase": phase, "state": state, "result": list(result)}
|
|
61
|
+
except sqlite3.Error as exc:
|
|
62
|
+
record = {"phase": phase, "state": "error", "reason": str(exc)}
|
|
63
|
+
checkpoints.append(record)
|
|
64
|
+
print("observability checkpoint: " + json.dumps(record), file=sys.stderr)
|
|
65
|
+
|
|
66
|
+
checkpoint("before")
|
|
67
|
+
try:
|
|
68
|
+
db.execute("BEGIN IMMEDIATE")
|
|
69
|
+
for sql in INDEXES:
|
|
70
|
+
db.execute(sql)
|
|
71
|
+
db.execute("COMMIT")
|
|
72
|
+
except BaseException:
|
|
73
|
+
if db.in_transaction:
|
|
74
|
+
db.execute("ROLLBACK")
|
|
75
|
+
raise
|
|
76
|
+
finally:
|
|
77
|
+
checkpoint("after")
|
|
78
|
+
return {
|
|
79
|
+
"status": "built",
|
|
80
|
+
"checkpoints": checkpoints,
|
|
81
|
+
"elapsed_seconds": time.monotonic() - started,
|
|
82
|
+
"estimated_index_bytes": estimated,
|
|
83
|
+
"required_bytes": required,
|
|
84
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
BUILD_SHA = "daed6d61a41fba13c624b733a7fa1be670f881ea"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.hotlane-brainbar.plist
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.maintenance-nightly.plist
RENAMED
|
File without changes
|
{brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.maintenance-weekly.plist
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.brainlayer.throughput-watchdog.plist
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brainlayer-1.5.97 → brainlayer-1.5.98}/scripts/launchd/com.etanhey.brainlayer-fleet-watchdog.plist
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brainlayer-1.5.97 → brainlayer-1.5.98}/src/brainlayer/data/sandbox_seeds/skill-eval-baseline.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|