# Echo6 Vault Engine — configuration (single source of truth for the engine)
vault_dir: /home/zvx/projects/.ref/vault
engine_dir: /home/zvx/projects/.ref/engine

models:
  tagger:
    ollama_endpoint: http://localhost:11434
    model: vault-tagger            # built by bootstrap from Modelfile
    base_model: qwen2.5:7b-instruct-q8_0
    temperature: 0.1
    format: json
  embeddings:
    tei_endpoint: http://localhost:8090   # existing bge-m3 service (reuse)
    model: bge-m3
    qdrant_endpoint: http://localhost:6333
    qdrant_collection: vault_docs

# Stable topic-tag vocabulary (tier 1). The entity lexicon (tier 2) is GENERATED into vocab.json.
topic_categories:
  - mesh
  - matrix
  - recon
  - media
  - auth
  - dns
  - vpn
  - storage
  - proxmox
  - ai
  - mail
  - tooling

# Read-only inventory sources for the generated entity lexicon (tier 2)
inventory:
  proxmox_nodes: [data, utility, cloud, media, toc]   # pct list / qm list (root)
  proxmox_vps: [edge1, edge2]                          # edge1=root; edge2=admin+sudo (hardened, no root login)
  docker_hosts: [cortex, utility, media]               # host-level docker ps; edge1/edge2 services are LXC-nested (not visible at host level)
  headscale_host: edge2                                # Headscale runs in edge2 CT 107 (dockerized)
  ssh_user: zvx

# Frontmatter property schema enforced by lint
frontmatter_schema:
  required: [title, type, tags, updated]
  optional: [aliases, related, status]
  types: [reference, runbook, project, note, index, session]

behavior:
  auto_apply: true            # write changes directly...
  log_changes: true           # ...but log every change for audit/revert
  changelog: /home/zvx/projects/.ref/engine/changelog.md
  confidence_threshold: 0.6   # below this, flag in changelog instead of silent

schedule:
  cron: "0 9 * * *"           # 09:00 UTC daily (off-peak); guard checks GPU before running
  defer_if_gpu_busy_mib: 6000 # skip/defer if >this much VRAM already in use

# Extraction settings
extraction:
  ubiquity_ceiling_pct: 25   # concepts in >25% of vault docs are AMBIENT; skip page + wikilink
