id: 1c
name: 1C Assistant
status: draft
version: 0.1.0
owner: local-llm-platform
tasks:
  - bsl-code
  - 1c-query
  - metadata-analysis
  - rag
  - fine-tuning
uses_core:
  - registry
  - inference
  - training
  - evals
future_service: true
entrypoints:
  check_onec_agent_api: scripts/smoke_onec_agent_api.py
  connector_standalone_check: scripts/check_1c_connector_standalone.py
  write_plan_contract: scripts/check_1c_write_plan_contract.py
  rag_build_knowledge_base: scripts/build_1c_knowledge_base.py
  rag_freshness: scripts/check_1c_rag_freshness.py
  rag_vector_freshness: scripts/check_1c_rag_vector_freshness.py
  rag_sources_validate: scripts/validate_1c_rag_sources.py
  rag_quality: scripts/check_1c_rag_quality.py
  rag_profiles_check: scripts/check_1c_rag_profiles.py
  rag_prepare: scripts/prepare_1c_rag_corpus.py
  rag_index: scripts/build_1c_rag_index.py
  rag_vector_index: scripts/build_1c_rag_vector_index.py
  rag_vector_search: scripts/search_1c_rag_vector.py
  rag_hybrid_search: scripts/search_1c_rag_hybrid.py
  semantic_cache_embed: scripts/embed_1c_semantic_cache.py
  semantic_cache_search: scripts/search_1c_semantic_cache.py
  rag_ask: scripts/ask_1c_rag.py
  metadata_validate: scripts/validate_1c_metadata_snapshot.py
  bsl_symbol_resolve: scripts/resolve_1c_bsl_symbol.py
  bsl_symbol_check: scripts/check_1c_bsl_symbol_resolver.py
  code_symbol_contract: scripts/check_1c_code_symbol_contract.py
  module_origin_contract: scripts/check_1c_module_origin_contract.py
  extension_action_contract: scripts/check_1c_extension_action_contract.py
  moxel_schema_discover: scripts/discover_1c_moxel_schema.py
  moxel_schema_registry_build: scripts/build_1c_moxel_schema_registry.py
  moxel_schema_registry_check: scripts/check_1c_moxel_schema_registry.py
  moxel_schema_registry_verify: scripts/verify_1c_moxel_schema_registry.py
  moxel_discovery_pipeline: scripts/run_1c_moxel_discovery_pipeline.py
  moxel_named_range_rules: scripts/analyze_1c_moxel_named_range_rules.py
  moxel_next_experiments_plan: scripts/plan_1c_moxel_next_experiments.py
  moxel_next_action: scripts/get_1c_moxel_next_action.py
  moxel_next_action_check: scripts/check_1c_moxel_next_action.py
  moxel_status: scripts/status_1c_moxel.py
  moxel_property_experiments: scripts/analyze_1c_moxel_property_experiments.py
  moxel_property_watch: scripts/watch_1c_moxel_property_experiment.py
  metadata_to_rag: scripts/convert_1c_metadata_to_rag.py
  bsl_modules_validate: scripts/validate_1c_bsl_modules.py
  bsl_modules_to_rag: scripts/convert_1c_bsl_modules_to_rag.py
  query_validate: scripts/validate_1c_readonly_query.py
  training_validate: scripts/validate_1c_training_data.py
  training_generate: scripts/generate_1c_training_data.py
  training_prepare: scripts/prepare_1c_training_data.py
  training_preflight: scripts/preflight_1c_training.py
  training_export_gguf: scripts/convert_1c_lora_to_gguf_gpu.ps1
  training_publish_q6: scripts/train_and_publish_q6_lora.ps1
  eval_smoke: scripts/run_1c_smoke_eval.py
  status: scripts/status_1c_plugin.py
contracts:
  openapi: plugins/1c/agent/openapi.yaml
  tools: plugins/1c/tools/tool-contract.yaml
  system_prompt: plugins/1c/prompts/system.md
  rag_prompt: plugins/1c/prompts/rag-answer.md
artifacts:
  ignored:
    - plugins/1c/datasets/raw
    - plugins/1c/datasets/prepared
    - plugins/1c/training/raw
    - plugins/1c/training/prepared
    - plugins/1c/rag/sources
quality_gates:
  - validate metadata snapshots before converting to RAG
  - validate and secret-scan training data before preparing train JSONL
  - run smoke evals before promoting models or adapters
  - do not answer concrete metadata questions without metadata snapshot or tool data
