#!/usr/bin/env bash set -euo pipefail ROOT="/data/aios-gitops" WORKSPACE="$ROOT/workspace" cd "$WORKSPACE" git add active-runtime/app/aios_gitops_model_api.py scripts/hermes_gitops_parallel_agents.py git commit -m "fix(gitops): align baseline tag and secret scan" || true python3 - <<'PY' import datetime import sqlite3 p = "/data/aios-gitops/runtime/gitops_model.sqlite3" con = sqlite3.connect(p) con.execute( "UPDATE gitops_baseline SET active_version=?, active_tag=?, source_package=?, update_mode=?, updated_at=? WHERE id=?", ( "V1R1C0", "V1R1C0-baseline-20260706", "AIOS_V1R1C0_MULTIUSER_GITOPS_CUSTOM_LLM_PROD_FULL_DEPLOY_20260706.zip", "git_patch_only", datetime.datetime.utcnow().isoformat() + "Z", "current", ), ) con.commit() con.close() PY sudo chown -R aiman:aiman "$ROOT/runtime" "$WORKSPACE" "$ROOT/logs" "$ROOT/artifacts" sudo systemctl restart aios-gitops-model-api.service sleep 2 curl -fsS http://127.0.0.1:18890/api/status echo python3 scripts/hermes_gitops_parallel_agents.py