{# Audit settings — modeled on governor_web/templates/settings/index.html. Three panes: 1. Account & ADC status (gcloud principal, ADC probe result) 2. LLM best-practices review settings (provider, model, top-N, threshold) 3. Status snapshot (audit binary version, config dir) #} {% extends "layout.html" %} {% block content %}

Setup

Settings

Per-machine configuration: account, LLM, status.

{% if saved %}
Settings saved.
{% endif %} {% if errors and errors.get('_general') %}
{{ errors['_general'] }}
{% endif %} {# ── 1. Account & ADC status ── #}

Account & ADC status

{{ "ADC ok" if adc.ok else (adc.status | replace("_", " ") | lower) }}
Active gcloud principal
{{ principal or "—" }}
GCP project
{{ config.gcp_project_id }}
BigQuery region
{{ config.bigquery_region }}
{% if adc.message %}
Last probe
{{ adc.message }}
{% endif %}

Project + region live on /admin/configurations. Re-authenticate gcloud with gcloud auth application-default login.

{# ── 2. LLM best-practices review ── #}

LLM best-practices review

Run an LLM over the top {{ config.llm.top_n }} most expensive jobs to flag BigQuery anti-patterns the rules-engine doesn't cover.

{{ "enabled" if config.llm.enabled else "disabled" }}

Reviewer code lands in v0.0.2; settings saved here will be picked up automatically.

{# ── 3. Status snapshot ── #}

Status

Audit binary
v{{ app_version }}
Config file
~/.governor-audit/config.json
Cache DB
~/.governor-audit/state.db
Web UI port
{{ config.web_ui.port }} (loopback only)
{% endblock %}