abebb72653
docs: session log 2026-05-24 RAG corpus setup debugging
2026-05-24 19:13:43 +02:00
a2790be421
fix: create corpus via REST API directly, bypassing SDK backend_config bug
...
SDK 1.153.1 always defaults to Spanner when backend_config is omitted,
and crashes when it's provided. Use REST POST directly with
vectorDbConfig.ragManagedDb set to force serverless.
2026-05-24 19:11:25 +02:00
2beb6a359d
fix: drop backend_config from create_corpus — rely on pre-flight PATCH alone
...
SDK 1.153.1 has a bug in set_backend_config where it calls .CopyFrom()
on RagManagedDb which is not a real protobuf message.
The project-level ragEngineConfig PATCH already sets basic tier,
so passing backend_config is unnecessary and breaks corpus creation.
2026-05-24 19:04:31 +02:00
46b3c52607
fix: RagManagedDb() takes no arguments in SDK 1.153.1
2026-05-24 19:02:43 +02:00
582967a994
fix: use vector_db=RagManagedDb(tier=1) — correct field names for SDK 1.153.1
...
RagVectorDbConfig takes vector_db= not rag_managed_db=.
The db type is RagManagedDb, not RagManagedDbConfig.
2026-05-24 18:58:00 +02:00
ad8597f434
fix: use tier=1 int instead of RagManagedDbConfig.Tier.BASIC enum
...
The Tier enum is not available in the installed SDK version.
Use integer value 1 (BASIC) directly instead.
2026-05-24 18:44:22 +02:00
814dd89ca6
fix: explicitly set serverless RAG backend + improve error handling
...
- Pass RagVectorDbConfig with RagManagedDbConfig basic tier explicitly
to avoid Spanner allowlist errors on new projects
- Add pre-flight ensure_serverless_engine_config() via REST PATCH
- Cleaner error messages with actionable hints
- Idempotent: skips creation if corpus already exists
2026-05-24 18:11:27 +02:00
d0512f5ced
chore: add base Docker image to speed up deploys
...
- Add agents/core-logic/Dockerfile.base with heavy deps pre-baked
- Update agents/core-logic/Dockerfile to build FROM base image
- Update cloudbuild.yaml with step to build/push base (manual only)
- Typical deploy time reduction: ~3 min → ~30 sec
2026-05-24 17:04:42 +02:00
1cba5166db
fix: ADK 1.x Runner pattern + gemini-3.5-flash for A+ reasoning
2026-05-24 16:44:04 +02:00
497509370e
feat: add A/A+ mode routing to agent.py (OPAX)
2026-05-24 16:34:34 +02:00
60c7aff04d
fix: remove backend_config — Serverless is default in us-central1
2026-05-24 16:15:32 +02:00
a5fd5f58e8
fix: switch RAG corpus to Serverless mode (RagManagedDb) in us-central1
2026-05-24 16:13:24 +02:00
09dcb4d1a2
feat: OPAX heavy mode + LLM-ruting oppdatert + RAG serverless fix\n\n- MASTERPLAN.md: ny LLM-RUTINGSSTRATEGI-seksjon med OPAX Heavy Mode\n- masterplan-summary.md: oppdatert med heavy mode-referanser\n- setup_corpus.py: fjernet backend_config (Serverless mode, ingen Spanner)\n- sesjon-logg: 2026-05-24_opax-heavy-mode-llm-ruting-rag.md
2026-05-24 14:07:26 +00:00
0248081b83
fix: agent.py — bruk riktig import-path for VertexAiRagRetrieval (ADK 1.x)
2026-05-24 15:12:08 +02:00
250c150d73
feat: 12-rag-integration.sh — koble RAG corpus til Cloud Run agent via Secret Manager
2026-05-24 15:06:28 +02:00
021c84756a
fix: 07-rag-setup.sh — serialiser import-jobber (RAG tillater kun 1 aktiv op om gangen)
2026-05-24 14:44:03 +02:00
b242a0f864
fix: 07-rag-setup.sh — riktig import-endepunkt /ragFiles:import (ikke :importRagFiles)
2026-05-24 14:41:08 +02:00
d20a7d5878
fix: 07-rag-setup.sh — bruk project-number (ikke project-ID) i importRagFiles URL
2026-05-24 14:31:42 +02:00
300ebddd6d
fix: 07-rag-setup.sh — rett import-URL (CORPUS_NAME er full ressurssti, ikke relativ)
2026-05-24 14:26:56 +02:00
06767f8806
feat: 07-rag-setup.sh — upload alle docs/*.md + corpus-seed/*.md til GCS automatisk
2026-05-24 14:24:00 +02:00
b2323fe476
docs: seed corpus med sesjon-logger, MASTERPLAN og dialogflow-plan — agenten lærer hele reisen
2026-05-24 14:21:44 +02:00
c7c12194f5
fix: 08-memorybank-setup.sh — REST API agent engine creation, no SDK dependency
2026-05-24 14:07:54 +02:00
9928c595b8
fix: 07-rag-setup.sh — REST API corpus creation, RAG_REGION=europe-west4 default (no SDK needed)
2026-05-24 14:03:31 +02:00
eea7e8497f
fix: 07-rag-setup.sh — upgrade SDK + multi-attempt serverless corpus creation
2026-05-24 13:59:27 +02:00
8ca45af1e9
docs: incorporate Dialogflow CX FAQ-agent plan into MASTERPLAN phases
2026-05-24 13:50:20 +02:00
5e33bb64b3
docs: add Dialogflow CX budget plan (kr5,822 NOK / ~$550)
2026-05-24 13:46:30 +02:00
8b6ebf8409
chore: session-close log 2026-05-21 OSV-MODUL-GEN1-COMP1 + update sessions index
2026-05-24 13:10:27 +02:00
34e3185ae1
docs: session log 2026-05-22 — osv-startup.ps1 banner + prompt styling [session-close]
2026-05-24 13:06:48 +02:00
3f5a559600
docs: LLM-rutingsstrategi — lett front, tung bakkant per modul
...
Updated the status and added LLM routing strategy details, including models, pricing, and configuration. Improved cost estimates and region availability information.
2026-05-24 11:37:55 +02:00
761c32e10a
chore: add .env.prefilled — alle kjente verdier ferdig-utfylt, legg til GITHUB_APP_INSTALLATION_ID
2026-05-24 08:17:36 +02:00
2681d85ef4
feat: enforce Norwegian (Bokmål) response language in agent system instruction
2026-05-24 06:24:21 +02:00
13c77ddfbb
ci: trigger build - Compute SA actAs fix
2026-05-24 02:41:43 +00:00
8f17f11bb4
ci: trigger build - IAM serviceAccountUser fix applied
2026-05-24 02:29:55 +00:00
1dab6cdac0
fix: rename all bare shell vars to _prefix - Cloud Build compatibility
2026-05-24 02:15:10 +00:00
032cf19f24
fix: use _WH_URL with underscore prefix - valid Cloud Build substitution key
2026-05-24 02:11:15 +00:00
aa76e9ab4c
fix: add substitutionOption ALLOW_LOOSE to cloudbuild.yaml
2026-05-24 02:08:31 +00:00
e814f406b2
fix: rename WEBHOOK_URL to WH_URL to avoid Cloud Build substitution parse error
2026-05-24 02:05:49 +00:00
d84ea0d5c3
fix: unquote shell vars in cloudbuild.yaml to avoid Cloud Build substitution parse error
2026-05-24 02:02:36 +00:00
25eec703ce
feat: billing IAM hardening — 11-billing-iam-hardening.sh, jason.vauger viewer, MASTERPLAN oppdatert
2026-05-24 02:30:27 +02:00
aff36f2f35
feat: cost-guard komplett — dev-budsjett, Pub/Sub auto-teardown, webhook-alert, cost-check i CI/CD
2026-05-23 23:22:39 +02:00
4502ae09fd
docs: oppdater .env.example (2nd gen vars) og MASTERPLAN (OQ-04 løst, Terraform-veikart)
2026-05-23 23:11:41 +02:00
c4398513cb
feat: migrate Cloud Build trigger to 2nd gen (cloudbuildv2 connection — no manual OAuth)
2026-05-23 23:08:43 +02:00
69eab2c113
docs: oppdater README, IAM-docs, legg til rag/memory/eval mapper og cost-guard
2026-05-23 20:54:05 +00:00
9b806caed4
fix: grant run.developer to SA
2026-05-23 20:42:58 +00:00
b8fe1310f2
fix: grant artifactregistry.writer to SA
2026-05-23 20:34:53 +00:00
03fdfc9d1c
test: verify CI/CD trigger
2026-05-23 20:22:39 +00:00
14910e2fa2
feat: add cloudbuild.yaml for CI/CD auto-deploy on push to main
2026-05-23 21:29:58 +02:00
ffe4ec1c63
fix: await get_session and create_session (async ADK 1.x API)
2026-05-23 21:09:59 +02:00
4ef0683c7c
fix: use try/except to create session if get_session raises in ADK 1.x
2026-05-23 20:45:50 +02:00
7e1af38474
fix: auto-create session if not found in /run endpoint
2026-05-23 20:33:39 +02:00