brainlayer 1.6.14__tar.gz → 1.6.16__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.6.14 → brainlayer-1.6.16}/PKG-INFO +1 -1
- {brainlayer-1.6.14 → brainlayer-1.6.16}/pyproject.toml +1 -1
- {brainlayer-1.6.14 → brainlayer-1.6.16}/server.json +2 -2
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/__init__.py +1 -1
- brainlayer-1.6.16/src/brainlayer/_build.py +1 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/doctor.py +32 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/launchd_install.py +36 -5
- brainlayer-1.6.16/src/brainlayer/script_copy_refresh.py +124 -0
- brainlayer-1.6.14/src/brainlayer/_build.py +0 -1
- {brainlayer-1.6.14 → brainlayer-1.6.16}/.gitignore +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/LICENSE +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/README.md +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/brainbar-update.sh +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/brainlayer-version-check.sh +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/hotlane_brainbar_daemon.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/backup-daily.sh +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/brainlayer-env-run.sh +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/brainlayer.env.example +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.backup-daily.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.daemon.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.decay.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.drain.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.health-check.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.hotlane-brainbar.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.index.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.jsonl-backup.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.log-cap.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.maintenance-nightly.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.maintenance-weekly.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.maintenance.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.observability.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.p0-counter.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.repair-fts.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.t3-audit.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.t3-ingest.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.throughput-watchdog.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.tier0-watchdog.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.wal-checkpoint.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.watch.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.etanhey.brainlayer-fleet-watchdog.plist +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/fleet-watchdog.sh +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/install.sh +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/jsonl-backup.sh +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/throughput-watchdog.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/release-verify-signatures.sh +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/tier0-watchdog.sh +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/__main__.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/_helpers.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/agent_census.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/agent_profiles.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/agent_provenance.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/agy_attribution.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/alarm.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/archive_collapse.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/archive_lifecycle.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/backup_clone.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/backup_daily.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/backup_heavy_gate.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/backup_retention.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/backup_retention_invariant.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/backup_retention_observation.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/backup_sleep.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/badge_state.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/bitemporal.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/brainbar_activation.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/brainbar_auto_activation.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/brainbar_hybrid_helper.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/brainbar_identity.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/cachedelete_purge.swift +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/calibrate.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/chunk_origin.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/chunk_origin_backfill.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/chunk_origin_wipe.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/chunk_write.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/classify.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/claude_paths.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/cli/__init__.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/cli/wizard.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/cli_jobs.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/cli_new.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/cloud_backfill.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/clustering.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/codex_zst.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/component_jobs.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/config.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/consolidation_plan.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/content_class.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/content_hash_repair.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/correction_judge.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/data/agents_registry.yaml +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/data/sandbox_seeds/skill-eval-baseline.json +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/db_shrink.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/decay.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/decay_backfill.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/decay_job.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/dedupe.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/dedupe_merge.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/deploy_drift.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/disk_space.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/drain.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/drain_liveness.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/drive_credentials.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/embeddings.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/engine.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/enrichment_replay.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/__init__.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/abcde_enrich_runner.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/abcde_variants.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/abcde_variants.yaml +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/benchmark.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/enrichment_gold.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/enrichment_graders.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/enrichment_judge.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/enrichment_llm_judge.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/enrichment_quality_benchmark.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/experiment_store.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/fixtures/README.md +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/labeling/enrichment-labeler.html +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/phoenix_gate/__init__.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/phoenix_gate/__main__.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/phoenix_gate/baseline_store.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/phoenix_gate/cli.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/phoenix_gate/models.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/phoenix_gate/phoenix_client.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/phoenix_gate/regression_gate.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/phoenix_gate/triggers.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/pilot_artifact_report.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/fallback_replay.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/git_learning.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/health_check.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/health_facts.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/health_verdict.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/hook_python.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/hooks/__init__.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/hooks/indexer.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/hotlane_budget.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/import_sweep.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/index_admission.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/index_budget.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/index_completeness.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/index_new.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/index_watchdog.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/ingest/__init__.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/ingest/codex.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/ingest/codex_manifest.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/ingest/t3.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/ingest/t3_audit.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/ingest/t3_bookmark.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/ingest/t3_ownership.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/ingest_denylist.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/ingest_guard.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/isolation_proof.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/job_alerts.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/job_lifecycle_health.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/jobs.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/jsonl_backup.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/kg/__init__.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/kg_cleanup.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/kg_judge.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/kg_promotion.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/kg_repo.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/kg_review_session.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/kg_session_finish.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/kg_session_harvest.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/launchd_consolidation.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/launchd_primitive.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/launchd_revert.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/launcher_policy_reconcile.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/lexical_defense.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/lexical_defense_dictionary.json +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/linkedin_import.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/log_cap.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/maintenance.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/maintenance_calendar.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/maintenance_control.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/maintenance_upload_recovery.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/mcp/__init__.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/mcp/_format.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/mcp/_shared.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/mcp/enrich_handler.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/mcp/entity_handler.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/mcp/palette.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/mcp/search_handler.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/mcp/store_handler.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/mcp/tags_handler.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/mcp_socket_config.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/mcp_stdio_bridge.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/memory_types.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/migrate.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/migration_custody.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/migration_journal.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/migration_runtime.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/notification_policy.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/observability_backup.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/observability_indexes.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/observability_surface.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/observability_transport.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/p0_longitudinal_count.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/parent_death.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/paths.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pause.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/phonetic.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/__init__.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/agent_enrichment.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/analyze_communication.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/batch_extraction.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/brain_graph.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/chat_tags.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/chunk.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/classify.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/cloud_scrub.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/cluster_sampling.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/code_intelligence.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/correction_detection.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/correction_mining.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/digest.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/enrichment_prompts.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/enrichment_results.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/enrichment_tiers.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/entity_extraction.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/entity_resolution.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/extract.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/extract_claude_desktop.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/extract_corrections.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/extract_markdown.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/extract_whatsapp.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/frustration_mining.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/git_overlay.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/kg_extraction.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/kg_extraction_groq.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/longitudinal_analyzer.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/obsidian_export.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/operation_grouping.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/plan_linking.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/rate_limiter.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/relation_backfill.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/relation_verification.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/sanitize.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/secret_scrub.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/semantic_style.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/sentiment.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/session_history.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/style_embed.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/style_index.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/tag_entity_promotion.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/temporal_chains.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/time_batcher.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/unified_timeline.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/pipeline/write_queue.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/policy_reconcile.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/provenance.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/provenance_autosupersede.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/provenance_integration.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/queue_io.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/queue_merge.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/queued_messages.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/readonly_snapshot.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/reembed_backfill.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/retired_services.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/runtime_store.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/sandbox_db.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/schema_ddl_ledger.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/scoping.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/scrub_at_rest.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/search_fanout.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/search_profile.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/search_repo.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/search_response.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/service_supervisor.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/session_repo.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/setup.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/socket_hygiene.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/source_class_migration.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/source_visibility.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/spotlight.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/storage.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/store.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/supervisor_adapters.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/supervisor_child.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/supervisor_diagnostics.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/supervisor_guard.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/supervisor_jobs.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/system_prompt_guard.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/t3_linkage_alarm.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/t3_provenance.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/t3_sources.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/t3_thread_tables.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/tag_normalization.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/taxonomy.json +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/telemetry.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/timestamp_iso.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/types.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/vector_store.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/wal_checkpoint.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/watcher.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/watcher_bridge.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/writer_policy.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/writer_telemetry.py +0 -0
- {brainlayer-1.6.14 → brainlayer-1.6.16}/src/brainlayer/zstd_stream.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: brainlayer
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.16
|
|
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
|
|
@@ -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.6.
|
|
6
|
+
"version": "1.6.16",
|
|
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.6.
|
|
17
|
+
"version": "1.6.16",
|
|
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.6.
|
|
5
|
+
__version__ = "1.6.16"
|
|
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 = "a55ab00c37f3e1c2d415ff427354f17024d495d0"
|
|
@@ -678,6 +678,7 @@ def _check_deploy_drift(
|
|
|
678
678
|
provenance_dir: Path,
|
|
679
679
|
command_runner: CommandRunner,
|
|
680
680
|
) -> None:
|
|
681
|
+
_check_script_copy_drift(result, home=Path.home(), templates=Path(__file__).parent / "launchd")
|
|
681
682
|
for label in labels:
|
|
682
683
|
try:
|
|
683
684
|
loaded = is_launchd_label_loaded(label, command_runner=command_runner)
|
|
@@ -709,6 +710,37 @@ def _check_deploy_drift(
|
|
|
709
710
|
)
|
|
710
711
|
|
|
711
712
|
|
|
713
|
+
def _check_script_copy_drift(result: DoctorResult, *, home: Path, templates: Path) -> None:
|
|
714
|
+
from .consolidation_plan import read_owned
|
|
715
|
+
from .script_copy_refresh import script_sources
|
|
716
|
+
|
|
717
|
+
if not (templates / "install.sh").is_file():
|
|
718
|
+
return # Source checkout; there is no installed keg payload to compare.
|
|
719
|
+
try:
|
|
720
|
+
sources = script_sources(templates)
|
|
721
|
+
except (OSError, ValueError) as exc:
|
|
722
|
+
result.issues.append(DoctorIssue("script_copy_check_failed", "warning", str(exc), {}))
|
|
723
|
+
return
|
|
724
|
+
for name, source in sources.items():
|
|
725
|
+
try:
|
|
726
|
+
destination = home / ".local/lib/brainlayer" / name
|
|
727
|
+
if not os.path.lexists(destination):
|
|
728
|
+
continue
|
|
729
|
+
if destination.resolve() != destination.absolute():
|
|
730
|
+
raise ValueError(f"linked supervisor-run copy refused: {name}")
|
|
731
|
+
if read_owned(destination) != read_owned(source):
|
|
732
|
+
result.issues.append(
|
|
733
|
+
DoctorIssue(
|
|
734
|
+
"script_copy_drift",
|
|
735
|
+
"warning",
|
|
736
|
+
f"supervisor-run copy differs from the keg: {name}",
|
|
737
|
+
{"name": name},
|
|
738
|
+
)
|
|
739
|
+
)
|
|
740
|
+
except (OSError, ValueError, RuntimeError) as exc: # Before 3.13, resolve() raises RuntimeError on a loop.
|
|
741
|
+
result.issues.append(DoctorIssue("script_copy_check_failed", "warning", str(exc), {"name": name}))
|
|
742
|
+
|
|
743
|
+
|
|
712
744
|
def _check_brainbar_version_consistency(
|
|
713
745
|
result: DoctorResult,
|
|
714
746
|
*,
|
|
@@ -12,6 +12,7 @@ from pathlib import Path
|
|
|
12
12
|
|
|
13
13
|
from .consolidation_plan import read_owned, rendered_launchers
|
|
14
14
|
from .migration_custody import migration_lock
|
|
15
|
+
from .script_copy_refresh import refresh_script_copies, script_payload
|
|
15
16
|
|
|
16
17
|
WRAPPER = b'#!/bin/sh\nset -eu\nrunner_dir=$(CDPATH= cd "$(dirname "$0")" && pwd)\nexec "$runner_dir/brainlayer-env-run.sh" "$@"\n'
|
|
17
18
|
|
|
@@ -60,7 +61,8 @@ def _install(*, home, templates, env_file, python, keg, domain, run=command):
|
|
|
60
61
|
# Rendering validates the installed interpreter, plist identity and schedule.
|
|
61
62
|
prepared = rendered_launchers(templates, home, python, env_file)
|
|
62
63
|
helpers = {
|
|
63
|
-
name:
|
|
64
|
+
name: script_payload(templates / name)
|
|
65
|
+
for name in ("brainlayer-env-run.sh", "backup-daily.sh", "jsonl-backup.sh")
|
|
64
66
|
}
|
|
65
67
|
helpers.update({"BrainLayer Daemon": WRAPPER, "BrainLayer Maintenance": WRAPPER})
|
|
66
68
|
for raw in helpers.values():
|
|
@@ -69,19 +71,25 @@ def _install(*, home, templates, env_file, python, keg, domain, run=command):
|
|
|
69
71
|
for raw in prepared.values():
|
|
70
72
|
subprocess.run(["/usr/bin/plutil", "-lint", "--", "-"], input=raw, capture_output=True, check=True)
|
|
71
73
|
lib = home / ".local/lib/brainlayer"
|
|
72
|
-
|
|
74
|
+
|
|
75
|
+
def validate_lib():
|
|
73
76
|
if lib.resolve() != lib.absolute():
|
|
74
77
|
raise ValueError("helper directory must not traverse symlinks")
|
|
75
78
|
lib.mkdir(mode=0o700, parents=True, exist_ok=True)
|
|
76
79
|
info = lib.stat()
|
|
77
80
|
if info.st_uid != os.getuid() or info.st_mode & 0o022:
|
|
78
81
|
raise ValueError("helper directory must be owned and not writable by others")
|
|
79
|
-
|
|
82
|
+
|
|
83
|
+
with migration_lock(home):
|
|
84
|
+
validate_lib()
|
|
85
|
+
# Calendar helpers and the shared runner keep their pre-existing strict
|
|
86
|
+
# byte identity and executable-mode contract, including on replay.
|
|
80
87
|
missing = []
|
|
81
88
|
for name, raw in helpers.items():
|
|
82
89
|
path = lib / name
|
|
83
90
|
if os.path.lexists(path):
|
|
84
|
-
|
|
91
|
+
existing = read_owned(path)
|
|
92
|
+
if existing != raw or stat.S_IMODE(path.stat().st_mode) != 0o755:
|
|
85
93
|
raise RuntimeError(f"helper differs; explicit operator reconciliation required: {path}")
|
|
86
94
|
else:
|
|
87
95
|
missing.append((path, raw))
|
|
@@ -98,7 +106,30 @@ def _install(*, home, templates, env_file, python, keg, domain, run=command):
|
|
|
98
106
|
os.unlink(staging)
|
|
99
107
|
(home / "Library/LaunchAgents").mkdir(parents=True, exist_ok=True)
|
|
100
108
|
(home / "Library/Logs/brainlayer").mkdir(parents=True, exist_ok=True)
|
|
101
|
-
|
|
109
|
+
outcome = migrate(home=home, templates=templates, env_file=env_file, python=python, keg=keg, domain=domain, run=run)
|
|
110
|
+
script_copies = {}
|
|
111
|
+
if outcome["phase"] == "migrated" and not outcome.get("restart_fallback"):
|
|
112
|
+
# The migration owns its complete restart window. Refresh exactly once
|
|
113
|
+
# after its final result, including successful recovery and same-keg reruns.
|
|
114
|
+
try:
|
|
115
|
+
with migration_lock(home):
|
|
116
|
+
validate_lib()
|
|
117
|
+
script_copies = refresh_script_copies(lib, templates)
|
|
118
|
+
except Exception as exc:
|
|
119
|
+
script_copies = {"_error": {"status": "failed", "reason": str(exc)}}
|
|
120
|
+
print(f"failed script-copy refresh: {exc}; receipt: {lib / 'script-copy-refresh.json'}", flush=True)
|
|
121
|
+
from . import job_alerts
|
|
122
|
+
|
|
123
|
+
failures = {name: row for name, row in script_copies.items() if row["status"] in {"refused", "failed"}}
|
|
124
|
+
try:
|
|
125
|
+
job_alerts.report(
|
|
126
|
+
"script-copy-refresh",
|
|
127
|
+
str(failures) if failures else None,
|
|
128
|
+
path=home / ".local/share/brainlayer/job-alerts.json",
|
|
129
|
+
)
|
|
130
|
+
except Exception as exc:
|
|
131
|
+
print(f"failed script-copy refresh alert: {exc}; receipt: {lib / 'script-copy-refresh.json'}", flush=True)
|
|
132
|
+
return {**outcome, "script_copies": script_copies}
|
|
102
133
|
|
|
103
134
|
|
|
104
135
|
def main(argv=None):
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"""Refresh existing supervisor scripts from the installer's own copy mapping."""
|
|
2
|
+
|
|
3
|
+
import hashlib
|
|
4
|
+
import json
|
|
5
|
+
import os
|
|
6
|
+
import re
|
|
7
|
+
import stat
|
|
8
|
+
import tempfile
|
|
9
|
+
|
|
10
|
+
from .consolidation_plan import read_owned
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def script_payload(source):
|
|
14
|
+
raw = read_owned(source)
|
|
15
|
+
if re.search(rb"__[A-Z_]+__", raw):
|
|
16
|
+
raise ValueError(f"unrendered install placeholder in {source.name}")
|
|
17
|
+
return raw
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def script_sources(templates):
|
|
21
|
+
# install.sh is shipped beside the payloads. Its literal lib destinations are
|
|
22
|
+
# the mapping; variable display-name wrappers are generated, not script copies.
|
|
23
|
+
names = re.findall(r'="\$BRAINLAYER_LIB_DIR/([A-Za-z0-9_.-]+)"', read_owned(templates / "install.sh").decode())
|
|
24
|
+
sources = {}
|
|
25
|
+
for name in sorted(set(names)):
|
|
26
|
+
source = templates / name
|
|
27
|
+
if not source.exists():
|
|
28
|
+
source = templates.parent / name # Source-tree-only payload layout.
|
|
29
|
+
sources[name] = source
|
|
30
|
+
return sources
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _snapshot(directory, name):
|
|
34
|
+
fd = os.open(name, os.O_RDONLY | os.O_NOFOLLOW | os.O_NONBLOCK, dir_fd=directory)
|
|
35
|
+
with os.fdopen(fd, "rb") as stream:
|
|
36
|
+
info = os.fstat(stream.fileno())
|
|
37
|
+
if not stat.S_ISREG(info.st_mode):
|
|
38
|
+
raise ValueError("not a regular file")
|
|
39
|
+
if info.st_uid != os.getuid():
|
|
40
|
+
raise ValueError("not owned by current user")
|
|
41
|
+
if info.st_nlink != 1:
|
|
42
|
+
raise ValueError("hard-linked file")
|
|
43
|
+
return info, stream.read()
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def _identity(info):
|
|
47
|
+
# A read can advance atime; it does not change the entry's publication identity.
|
|
48
|
+
return (
|
|
49
|
+
info.st_dev,
|
|
50
|
+
info.st_ino,
|
|
51
|
+
info.st_mode,
|
|
52
|
+
info.st_uid,
|
|
53
|
+
info.st_nlink,
|
|
54
|
+
info.st_size,
|
|
55
|
+
info.st_mtime_ns,
|
|
56
|
+
info.st_ctime_ns,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def _replace(lib, directory, name, raw, previous, mode):
|
|
61
|
+
fd, staging = tempfile.mkstemp(prefix=".refresh-", dir=lib)
|
|
62
|
+
try:
|
|
63
|
+
with os.fdopen(fd, "wb") as stream:
|
|
64
|
+
stream.write(raw)
|
|
65
|
+
os.fchmod(stream.fileno(), mode)
|
|
66
|
+
stream.flush()
|
|
67
|
+
os.fsync(stream.fileno())
|
|
68
|
+
if previous is None:
|
|
69
|
+
os.link(staging, name, dst_dir_fd=directory)
|
|
70
|
+
else:
|
|
71
|
+
info, old = _snapshot(directory, name)
|
|
72
|
+
|
|
73
|
+
if _identity(info) != _identity(previous[0]) or old != previous[1]:
|
|
74
|
+
raise ValueError("destination changed during refresh")
|
|
75
|
+
# Accepted same-user identity-to-replace window: replace swaps the
|
|
76
|
+
# entry, never writes through a link. Installer/migration locks serialize us.
|
|
77
|
+
os.replace(staging, name, dst_dir_fd=directory)
|
|
78
|
+
os.fsync(directory)
|
|
79
|
+
finally:
|
|
80
|
+
try:
|
|
81
|
+
os.unlink(staging)
|
|
82
|
+
except FileNotFoundError:
|
|
83
|
+
pass # os.replace consumed the staging name.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def refresh_script_copies(lib, templates):
|
|
87
|
+
"""Caller holds installer/migration locks and validates lib's parent custody."""
|
|
88
|
+
results = {}
|
|
89
|
+
directory = os.open(lib, os.O_RDONLY | os.O_DIRECTORY | os.O_NOFOLLOW)
|
|
90
|
+
try:
|
|
91
|
+
receipt = "script-copy-refresh.json"
|
|
92
|
+
try:
|
|
93
|
+
previous_receipt = _snapshot(directory, receipt)
|
|
94
|
+
except FileNotFoundError:
|
|
95
|
+
previous_receipt = None
|
|
96
|
+
for name, source in script_sources(templates).items():
|
|
97
|
+
try:
|
|
98
|
+
previous = _snapshot(directory, name)
|
|
99
|
+
except FileNotFoundError:
|
|
100
|
+
results[name] = {"status": "missing"}
|
|
101
|
+
continue
|
|
102
|
+
except (OSError, ValueError) as exc:
|
|
103
|
+
results[name] = {"status": "refused", "reason": str(exc)}
|
|
104
|
+
print(f"refused {name}: {exc}", flush=True)
|
|
105
|
+
continue
|
|
106
|
+
try:
|
|
107
|
+
raw = script_payload(source)
|
|
108
|
+
old = hashlib.sha256(previous[1]).hexdigest()[:8]
|
|
109
|
+
new = hashlib.sha256(raw).hexdigest()[:8]
|
|
110
|
+
status = "same" if previous[1] == raw else "refreshed"
|
|
111
|
+
if status == "refreshed":
|
|
112
|
+
_replace(lib, directory, name, raw, previous, stat.S_IMODE(previous[0].st_mode))
|
|
113
|
+
results[name] = {"status": status, "old": old, "new": new}
|
|
114
|
+
if status == "refreshed":
|
|
115
|
+
print(f"refreshed {name} {old} -> {new}", flush=True)
|
|
116
|
+
except (OSError, ValueError) as exc:
|
|
117
|
+
results[name] = {"status": "refused", "reason": str(exc)}
|
|
118
|
+
print(f"refused {name}: {exc}", flush=True)
|
|
119
|
+
raw_receipt = json.dumps(results, indent=2).encode()
|
|
120
|
+
if previous_receipt is None or previous_receipt[1] != raw_receipt:
|
|
121
|
+
_replace(lib, directory, receipt, raw_receipt, previous_receipt, 0o600)
|
|
122
|
+
finally:
|
|
123
|
+
os.close(directory)
|
|
124
|
+
return results
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
BUILD_SHA = "2a5121d00485fd15e7bfc9e9db7b2148e4de90dd"
|
|
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.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.hotlane-brainbar.plist
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.maintenance-nightly.plist
RENAMED
|
File without changes
|
{brainlayer-1.6.14 → brainlayer-1.6.16}/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
|
|
File without changes
|
{brainlayer-1.6.14 → brainlayer-1.6.16}/scripts/launchd/com.brainlayer.throughput-watchdog.plist
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brainlayer-1.6.14 → brainlayer-1.6.16}/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
|
|
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.6.14 → brainlayer-1.6.16}/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
|
|
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.6.14 → brainlayer-1.6.16}/src/brainlayer/eval/labeling/enrichment-labeler.html
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
|