{% extends 'generic/object.html' %} {% load helpers %} {% load plugins %} {% load i18n %} {% block content %}
{% trans "Health Summary" %}
{% trans "Export Live Source Check" %} {% trans "Export Pushdown Trends" %} {% trans "Export source reachability diagnostics and long-window pushdown trend history." %}
{% trans "Source" %} {{ health.source.name }}
{% trans "Source status" %} {{ health.source.status }}
{% trans "Source URL" %} {{ health.source.url }}
{% trans "Execution backend" %} {{ health.runtime.execution_backend }}
{% trans "Branching available" %} {{ health.runtime.branching_available|yesno:"Yes,No" }}
{% trans "Max changes per branch" %} {{ health.runtime.max_changes_per_branch }}
{% trans "Forward API timeout" %} {{ health.runtime.source_timeout_seconds|placeholder }}
{% trans "Worker timeout" %} {{ health.runtime.rq_default_timeout_seconds|placeholder }}
{% trans "Pushdown alert thresholds" %} {% with thresholds=health.runtime.pushdown_alert_thresholds %} fallback={{ thresholds.fallback_warn_rate|placeholder }}, runtime={{ thresholds.runtime_fallback_warn_share|placeholder }}, diff={{ thresholds.diff_warn_ratio|placeholder }} {% endwith %}
{% trans "Snapshot selection" %} {{ health.runtime.snapshot_selector|placeholder }}
{% trans "Next run" %}
{{ health.next_run.message }}
{% if health.next_run.blockers %}
    {% for blocker in health.next_run.blockers %}
  • {{ blocker.message }}
  • {% endfor %}
{% endif %}
{% trans "Forward API Usage" %}
{% if health.api_usage.available %} {% with budget=health.api_usage.budget counters=health.api_usage.counters metrics=health.api_usage.budget.metrics %} {% if budget.warnings %} {% endif %} {% if budget.failure_reasons %} {% endif %}
{% trans "Budget status" %} {% if budget.status == "passed" %} {% trans "Pass" %} {% elif budget.status == "failed" %} {% trans "Fail" %} {% elif budget.status == "warning" %} {% trans "Warn" %} {% else %} {{ budget.status|placeholder }} {% endif %}
{% trans "Configured rate" %} {{ metrics.configured_requests_per_minute|placeholder }} / {{ metrics.hard_block_requests_per_minute|placeholder }} rpm
{% trans "Observed rate" %} {{ metrics.observed_http_attempts_per_minute|placeholder }} rpm {% if metrics.observed_rate_sample_complete %} ({% trans "sampled" %}) {% endif %}
{% trans "HTTP attempts" %} {{ counters.http_attempts|placeholder }}
{% trans "HTTP 429 failures" %} {{ counters.http_429_failures|placeholder }}
{% trans "NQE calls" %} query={{ counters.nqe_query_calls|placeholder }}, diff={{ counters.nqe_diff_calls|placeholder }}, pages={{ counters.nqe_pages|placeholder }}
{% trans "Throttle sleep" %} {{ metrics.throttle_sleep_seconds|placeholder }} s
{% trans "Query parameters" %} {% with param_summary=health.api_usage.step_query_parameters %} {% if param_summary.available %} {{ param_summary.step_count }} {% trans "step(s) with explicit parameters" %}
    {% for item in param_summary.top_steps %}
  • {{ item.model }} / {{ item.query_name }}: {{ item.query_parameters }}
  • {% endfor %}
{% else %} {% trans "No explicit step query parameters recorded." %} {% endif %} {% endwith %}
{% trans "Warnings" %} {{ budget.warnings }}
{% trans "Failure reasons" %} {{ budget.failure_reasons }}
{% endwith %} {% else %}

{% trans "No stored Forward API usage evidence is available for the latest execution run." %}

{% endif %}
{% trans "Dependency Lookup Cache" %}
{% if health.dependency_lookup_cache.available %}
{% trans "Models primed" %} {{ health.dependency_lookup_cache.model_count|placeholder }}
{% trans "Rows processed" %} {{ health.dependency_lookup_cache.row_count|placeholder }}
{% trans "Primed targets" %} {{ health.dependency_lookup_cache.primed_target_count|placeholder }}
{% if health.dependency_lookup_cache.models %}
{% trans "Top primed models" %}
    {% for item in health.dependency_lookup_cache.models %}
  • {{ item.model }}: {{ item.row_count }} {% trans "rows" %}, {{ item.primed_target_count }} {% trans "primed targets" %} {% if item.fhrp_group_count %} , {{ item.fhrp_group_count }} {% trans "FHRP groups" %} {% endif %}
  • {% endfor %}
{% endif %} {% else %}

{% trans "No dependency lookup cache evidence is available for the latest execution run." %}

{% endif %}
{% trans "Optional Plugin Capabilities" %}
{% for integration_key, integration in health.optional_plugin_capabilities_ui.items %}
{{ integration.display_name|default:integration_key }}
{% trans "Integration" %} {{ integration.app_label|placeholder }}
{% trans "Installed" %} {{ integration.installed|yesno:"Yes,No" }}
{% trans "Installed version" %} {{ integration.version|placeholder }}
{% trans "Minimum version" %} {{ integration.minimum_version|placeholder }}
{% trans "Package names" %} {{ integration.package_names|join:", " }}
{% trans "Detected package" %} {{ integration.installed_package_name|placeholder }}
{% trans "Available" %} {{ integration.available|yesno:"Yes,No" }}
{% trans "Availability status" %} {{ integration.availability_status|placeholder }}
{% trans "Availability reason" %} {{ integration.availability_reason|placeholder }}
{% trans "Unsupported version" %} {{ integration.unsupported_version|yesno:"Yes,No" }}
{% trans "Required models missing" %} {{ integration.missing_required|length }}
{% trans "Optional models missing" %} {{ integration.missing_optional|length }}
{% trans "Command inventory entries" %} {{ integration.command_inventory_count }}
{% if integration.missing_required %}
{% trans "Missing required models" %}
    {% for model in integration.missing_required %}
  • {{ model }}
  • {% endfor %}
{% endif %} {% if integration.missing_optional %}
{% trans "Missing optional models" %}
    {% for model in integration.missing_optional %}
  • {{ model }}
  • {% endfor %}
{% endif %} {% if integration.command_inventory %}
{% trans "Command inventory" %}
    {% for command in integration.command_inventory %}
  • {{ command.command_type }} - {{ command.status|default:"unknown" }} {% if command.source %} - {{ command.source }} {% endif %}
  • {% endfor %}
{% endif %}
{% empty %}

{% trans "No optional plugin capability evidence is available." %}

{% endfor %}
{% trans "Checks" %}
{% for check in health.checks %} {% empty %} {% endfor %}
{% trans "Check" %} {% trans "Status" %} {% trans "Message" %}
{{ check.name }} {% if check.status == "pass" %} {% trans "Pass" %} {% elif check.status == "fail" %} {% trans "Fail" %} {% elif check.status == "warn" %} {% trans "Warn" %} {% else %} {% trans "Info" %} {% endif %} {{ check.message }}
{% trans "No checks available" %}
{% plugin_left_page object %}
{% trans "Query Binding" %}
{% trans "Raw query maps" %} {{ health.query_modes.query }}
{% trans "Direct query ID maps" %} {{ health.query_modes.query_id }}
{% trans "Repository path maps" %} {{ health.query_modes.query_path }}
{% trans "Diff-capable maps" %} {{ health.query_modes.diff_capable }}
{% trans "Data-file-dependent maps" %} {{ health.query_modes.data_file_maps|length }} {% if health.query_modes.data_file_maps %} {% trans "Export Live Data File Check" %} {% endif %}
{% trans "Query Path Resolution" %}
{% with resolution=health.query_path_resolution %} {% if resolution.available %}
{% trans "Query path specs" %} {{ resolution.total_query_path_specs|placeholder }}
{% trans "Artifact hits" %} {{ resolution.artifact_hit_count|placeholder }}
{% trans "Repository index reads" %} {{ resolution.repository_index_count|placeholder }}
{% trans "Forward lookups" %} {{ resolution.client_resolve_count|placeholder }}
{% trans "Cache hit rate" %} {{ resolution.cache_hit_rate|placeholder }}
{% else %}

{% trans "No query-path resolution telemetry is available for the latest execution run." %}

{% endif %} {% endwith %}
{% trans "Query Drift Summary" %}
{% trans "Maps assessed" %} {{ health.query_drift_summary.total_maps|placeholder }}
{% trans "Warn / info / pass" %} {{ health.query_drift_summary.warn_count }}/{{ health.query_drift_summary.info_count }}/{{ health.query_drift_summary.pass_count }}
{% trans "Remediation actions" %} {% if health.query_drift_summary.remediation_actions %}
    {% for item in health.query_drift_summary.remediation_actions %}
  • {{ item.count }} - {{ item.message }}
  • {% endfor %}
{% else %} {% trans "No remediation actions emitted." %} {% endif %}
{% trans "Live Query Drift" %}
{% with live_query_drift=live_diagnostics.query_drift %} {% if live_diagnostics.available and live_query_drift.available %}
{% trans "Maps checked" %} {{ live_query_drift.live_summary.total_maps|placeholder }}
{% trans "Live checked" %} {{ live_query_drift.live_summary.checked_maps|placeholder }}
{% trans "Warn / info / pass" %} {{ live_query_drift.live_summary.warn_count }}/{{ live_query_drift.live_summary.info_count }}/{{ live_query_drift.live_summary.pass_count }}
{% trans "Direct query ID warnings" %} {{ live_query_drift.live_summary.query_id_warn_count|placeholder }} {% if live_query_drift.live_summary.query_id_not_found_count or live_query_drift.live_summary.query_id_ambiguous_count or live_query_drift.live_summary.query_id_modified_count %} ( {% trans "not found" %}: {{ live_query_drift.live_summary.query_id_not_found_count|placeholder }}, {% trans "ambiguous" %}: {{ live_query_drift.live_summary.query_id_ambiguous_count|placeholder }}, {% trans "modified" %}: {{ live_query_drift.live_summary.query_id_modified_count|placeholder }} ) {% endif %}
{% trans "Lookup errors" %} {{ live_query_drift.live_summary.lookup_error_count|placeholder }}
{% if live_query_drift.live_summary.error %}

{% trans "Live query drift summary error" %}: {{ live_query_drift.live_summary.error }}

{% endif %} {% else %}

{% if live_diagnostics.message %} {{ live_diagnostics.message }} {% else %} {% trans "Live Forward query-drift diagnostics are unavailable." %} {% endif %}

{% endif %} {% endwith %}
{% trans "Local Query Drift" %}
{% trans "Export Live Query Drift Check" %}
{% csrf_token %}
{% trans "Export diagnostics, or refresh enabled maps to the canonical validation-folder query IDs." %}
{% for item in health.query_modes.local_drift %} {% empty %} {% endfor %}
{% trans "Map" %} {% trans "Mode" %} {% trans "Commit" %} {% trans "Status" %} {% trans "Message" %} {% trans "Remediation" %}
{{ item.name }} {{ item.mode }} {{ item.commit_message }} {% if item.severity == "pass" %} {{ item.status }} {% elif item.severity == "warn" %} {{ item.status }} {% else %} {{ item.status }} {% endif %} {{ item.message }} {{ item.remediation|default:"" }}
{% trans "No local query drift diagnostics available" %}
{% trans "Apply Engines" %}
{% trans "Selected engines" %} {{ health.apply_engines.selected }}
{% trans "Fallback reasons" %} {{ health.apply_engines.fallback_reasons }}
{% trans "Bulk ORM expansion" %} {{ health.apply_engines.bulk_orm_expansion.status }} - {{ health.apply_engines.bulk_orm_expansion.message }}
{% trans "Blocked models" %} {{ health.apply_engines.bulk_orm_expansion.blocked_model_count }}
{% trans "Parity gates" %} {{ health.apply_engines.bulk_orm_expansion.parity_gates|length }}
{% trans "Next parity target" %} {% with candidate=health.apply_engines.bulk_orm_expansion.parity_plan.candidates.0 %} {% if candidate %} {{ candidate.model }} - {{ candidate.promotion_lane }} ({{ candidate.lane_gate }}) {% else %} {% trans "No blocked candidates" %} {% endif %} {% endwith %}
{% trans "Parity plan" %} {{ health.apply_engines.bulk_orm_expansion.parity_plan.status }} - {{ health.apply_engines.bulk_orm_expansion.parity_plan.next_action }}
{% trans "Fetch Contracts" %}
{% trans "Fetch modes" %} {{ health.fetch_contracts.modes }}
{% trans "Shard-safe models" %} {{ health.fetch_contracts.shard_safe_count }}
{% trans "Model-fetch fallbacks" %} {{ health.fetch_contracts.model_fallback_count }}
{% trans "Query Runtime & Pushdown" %}
{% trans "Summary" %} {{ health.query_pushdown.message }}
{% trans "Stage steps profiled" %} {{ health.query_pushdown.total_stage_steps|placeholder }}
{% trans "Fetch modes observed" %} {{ health.query_pushdown.fetch_mode_counts }}
{% trans "Fallback steps" %} {{ health.query_pushdown.fallback_step_count|placeholder }}
{% trans "Fallback reasons" %} {{ health.query_pushdown.fallback_reasons|default:"[]" }}
{% trans "Pushdown rate" %} {{ health.query_pushdown.efficiency.pushdown_rate|placeholder }}
{% trans "Fallback rate" %} {{ health.query_pushdown.efficiency.fallback_rate|placeholder }}
{% trans "Efficiency advisory" %} {{ health.query_pushdown.efficiency.message|default:"" }}
{% trans "Fallback runtime share" %} {{ health.query_pushdown.runtime_share.fallback_runtime_share|placeholder }}
{% trans "Full-fallback runtime share" %} {{ health.query_pushdown.runtime_share.full_fallback_runtime_share|placeholder }}
{% trans "Diff actual ratio" %} {{ health.query_pushdown.diff_utilization.diff_actual_ratio|placeholder }}
{% trans "Baseline to diff" %} {{ health.query_pushdown.diff_baseline_transition.message|default:"" }}
{% trans "Tuning guidance" %} {% if health.query_pushdown.tuning_guidance %}
    {% for item in health.query_pushdown.tuning_guidance %}
  • {{ item.message }}
  • {% endfor %}
{% else %} {% trans "No tuning guidance emitted for this run." %} {% endif %}
{% for item in health.query_pushdown.slow_models %} {% empty %} {% endfor %}
{% trans "Model" %} {% trans "Query runtime (ms)" %} {% trans "Fetched rows" %} {% trans "Steps" %} {% trans "Fallback steps" %} {% trans "Fetch modes" %}
{{ item.model }} {{ item.query_runtime_ms|placeholder }} {{ item.fetched_row_count|placeholder }} {{ item.steps|placeholder }} {{ item.fallback_steps|placeholder }} {{ item.fetch_modes }}
{% trans "No stage query runtime samples are available yet" %}
{% for item in health.query_pushdown.trend_snapshots %} {% empty %} {% endfor %}
{% trans "Run" %} {% trans "Status" %} {% trans "Fallback rate" %} {% trans "Full-fallback runtime share" %} {% trans "Diff actual ratio" %} {% trans "Diff baseline correlation" %}
{{ item.run_id }} {{ item.status }} {{ item.fallback_rate|placeholder }} {{ item.full_fallback_runtime_share|placeholder }} {{ item.diff_actual_ratio|placeholder }} {{ item.baseline_reason_summary|default:"" }}
{% trans "No pushdown trend snapshots are available yet" %}
{% trans "Compatibility Cache" %}
{% trans "Summary" %} {{ health.compatibility_cache.message }}
{% trans "Ledger history exists" %} {{ health.compatibility_cache.ledger_history|yesno:"Yes,No" }}
{% trans "Active execution run" %} {{ health.compatibility_cache.active_execution_run|yesno:"Yes,No" }}
{% trans "Compatibility payload present" %} {{ health.compatibility_cache.compatibility_state_present|yesno:"Yes,No" }}
{% trans "Compatibility payload keys" %} {{ health.compatibility_cache.compatibility_state_size|placeholder }}
{% trans "Prune recommended" %} {{ health.compatibility_cache.prune_recommended|yesno:"Yes,No" }}
{% trans "Collection Gap" %}
{% trans "Backfilled devices" %} {% if health.collection_gap.status == "danger" %} {{ health.collection_gap.backfilled_count }} {% elif health.collection_gap.status == "warn" %} {{ health.collection_gap.backfilled_count }} {% else %} {{ health.collection_gap.backfilled_count }} {% endif %}
{% trans "Status" %} {{ health.collection_gap.message }}
{% trans "Density Learning" %}
{% trans "Tracked models" %} {{ health.density_learning.model_count|placeholder }}
{% trans "High confidence models" %} {{ health.density_learning.high_confidence_count|placeholder }}
{% trans "Medium confidence models" %} {{ health.density_learning.medium_confidence_count|placeholder }}
{% trans "Low confidence models" %} {{ health.density_learning.low_confidence_count|placeholder }}
{% for item in health.density_learning.models %} {% empty %} {% endfor %}
{% trans "Model" %} {% trans "Learned density" %} {% trans "Default density" %} {% trans "Samples" %} {% trans "Confidence" %}
{{ item.model }} {{ item.learned_density|placeholder }} {{ item.default_density|placeholder }} {{ item.sample_count|placeholder }} {{ item.confidence|placeholder }}
{% trans "No density learning samples are available yet" %}
{% trans "Latest State" %}
{% trans "Latest validation" %} {% if health.latest_validation %} {{ health.latest_validation.status }}{% if health.latest_validation.allowed %} ({% trans "allowed" %}){% endif %} {% else %} {{ ""|placeholder }} {% endif %}
{% trans "Latest ingestion" %} {% if health.latest_ingestion %} {{ health.latest_ingestion.name }}{% if health.latest_ingestion.baseline_ready %} ({% trans "baseline ready" %}{% if health.latest_ingestion.sync_mode %}, {% trans "sync mode" %}: {{ health.latest_ingestion.sync_mode }}{% endif %}){% elif health.latest_ingestion.sync_mode %} ({% trans "sync mode" %}: {{ health.latest_ingestion.sync_mode }}){% endif %} {% else %} {{ ""|placeholder }} {% endif %}
{% trans "Latest execution run" %} {% if health.latest_execution_run %} {{ health.latest_execution_run.status }} - {{ health.latest_execution_run.phase|placeholder }} {% else %} {{ ""|placeholder }} {% endif %}
{% trans "Recovery recommendation" %} {% if health.latest_execution_run %} {{ health.latest_execution_run.recovery_recommendation.message }} {% else %} {{ ""|placeholder }} {% endif %}
{% trans "Large Run Tuning" %}
{% trans "Status" %} {{ health.large_run_tuning.status|placeholder }}
{% trans "Summary" %} {{ health.large_run_tuning.message }}
{% trans "Query fetch concurrency" %} {{ health.large_run_tuning.query_fetch_concurrency|placeholder }}
{% trans "Worker timeout seconds" %} {{ health.large_run_tuning.worker_timeout_seconds|placeholder }}
{% trans "Backend advice" %} {{ health.large_run_tuning.execution_backend_advice.message|placeholder }}
{% trans "Adaptive capacity" %} {{ health.large_run_tuning.adaptive_capacity.message|placeholder }}
{% trans "Scheduler overlap readiness" %} {{ health.large_run_tuning.scheduler_overlap_readiness.message|placeholder }} {% with readiness=health.large_run_tuning.scheduler_overlap_readiness %} {% if readiness.hotspot_models %}
    {% for item in readiness.hotspot_models|slice:":3" %}
  • {{ item.model }}: {{ item.wait_seconds }}s wait, {{ item.wait_share }} share
  • {% endfor %}
{% endif %} {% endwith %}
{% trans "Next tuning batch" %} {% with batch=health.large_run_tuning.adaptive_capacity.next_tuning_batch %} {% if batch %}
  • {% trans "Workers" %}: {{ batch.worker_count.current|placeholder }} -> {{ batch.worker_count.recommended|placeholder }}
  • {% trans "Query fetch concurrency" %}: {{ batch.query_fetch_concurrency.current|placeholder }} -> {{ batch.query_fetch_concurrency.recommended|placeholder }}
  • {% trans "NQE page size" %}: {{ batch.nqe_page_size.current|placeholder }} -> {{ batch.nqe_page_size.recommended|placeholder }}
  • {{ batch.restart_scope }}; {% trans "hold minutes" %}: {{ batch.hold_minutes }}
{% else %} {% trans "No adaptive capacity batch is available yet." %} {% endif %} {% endwith %}
{% trans "First actions" %} {% if health.large_run_tuning.first_order_actions %}
    {% for item in health.large_run_tuning.first_order_actions %}
  • {{ item.message }}
  • {% endfor %}
{% else %} {% trans "No large-run tuning actions are available yet." %} {% endif %}
{% trans "Delete Wave" %}
{% trans "Phase" %} {{ health.delete_wave.phase|placeholder }}
{% trans "Summary" %} {{ health.delete_wave.message }}
{% trans "Planned delete rows" %} {{ health.delete_wave.plan.delete_rows|placeholder }}
{% trans "Delete share" %} {{ health.delete_wave.plan.delete_share|placeholder }}
{% trans "Delete shards" %} {{ health.delete_wave.plan.delete_shards|placeholder }}
{% trans "Warning codes" %} {{ health.delete_wave.warning_codes|join:", "|placeholder }}
{% trans "Delete execution order" %} {{ health.delete_wave.plan.execution_order|join:", "|placeholder }}
{% trans "High-risk models" %} {% if health.delete_wave.high_risk_models %}
    {% for item in health.delete_wave.high_risk_models %}
  • {{ item.model }}: {{ item.reference_blocker_risk }}, {{ item.delete_rows }} {% trans "rows" %}
  • {% endfor %}
{% else %} {% trans "No elevated delete-risk models are recorded." %} {% endif %}
{% trans "Dependency skip issues" %} {{ health.delete_wave.latest_ingestion.dependency_skip_issues.count|placeholder }}
{% trans "Delete step status" %} {{ health.delete_wave.steps.completed_delete_step_count|placeholder }}/{{ health.delete_wave.steps.delete_step_count|placeholder }} {% trans "terminal" %}
{% trans "Run Throughput & Capacity" %}
{% trans "Throughput summary" %} {{ health.throughput.message }}
{% trans "Queue / merge smoothing" %} {{ health.throughput.throughput_smoothing.message|placeholder }}
{% trans "Dominant wait component" %} {{ health.throughput.scheduler_overlap_dominant_wait_component|placeholder }}
{% trans "Current shard" %} {{ health.throughput.current_shard_index|placeholder }}/{{ health.throughput.total_shards|placeholder }}
{% trans "Shards per hour" %} 1h={{ health.throughput.shards_per_hour_1h|placeholder }}, 6h={{ health.throughput.shards_per_hour_6h|placeholder }}
{% trans "ETA range" %} {{ health.throughput.eta_seconds_low|placeholder }} - {{ health.throughput.eta_seconds_high|placeholder }} seconds
{% trans "Active step age" %} {{ health.throughput.active_step_age_seconds|placeholder }} seconds
{% trans "Issue rate" %} {{ health.throughput.issue_rate_per_hour|placeholder }} / hour
{% trans "Bottleneck phase" %} {{ health.throughput.bottleneck_phase|placeholder }}
{% trans "Runtime knobs" %} query_fetch_concurrency={{ health.throughput.query_fetch_concurrency|placeholder }}, nqe_page_size={{ health.throughput.nqe_page_size|placeholder }}, worker_timeout={{ health.throughput.worker_timeout_seconds|placeholder }}
{% trans "Completed steps" %} {{ health.capacity.completed_steps|placeholder }}
{% trans "Remaining steps" %} {{ health.capacity.remaining_steps|placeholder }}
{% trans "Average shard seconds" %} {{ health.capacity.average_completed_step_seconds|placeholder }}
{% trans "Max shard seconds" %} {{ health.capacity.max_completed_step_seconds|placeholder }}
{% trans "Projection" %} {{ health.capacity.message }}
{% include 'extras/inc/configcontext_data.html' with title="Health Details" data=health format="json" copyid="forward-sync-health-details" %}
{% plugin_right_page object %}
{% endblock content %}