Commit Graph

264 Commits

Author SHA1 Message Date
25a3f1fc93 chore: restore executable bit on cost-audit.sh 2026-05-25 12:51:43 +00:00
e5270e8790 chore: commit modified infra, RAG and session log files 2026-05-25 12:50:52 +00:00
9cd43572b0 chore: add untracked RAG, infra and session files 2026-05-25 12:49:52 +00:00
b73d140032 chore: fix executable permissions on all scripts 2026-05-25 12:48:31 +00:00
9a02fdaec4 docs: TODO oppdatert etter Phase 5 fullført 2026-05-25 14:39:29 +02:00
0706556d52 docs: Phase 5 fullført — Cloud Run IAM låst, IAP-SETUP og session log oppdatert 2026-05-25 14:33:49 +02:00
6866cff1a2 docs: IAP-SETUP kartlegging av Cloud Run-tjenester 2026-05-25 2026-05-25 14:05:22 +02:00
74f9e3c06f docs: harden phase 4 docs and append learnings 2026-05-25 13:48:50 +02:00
1dcf249400 chore(state): oppdater .gdrive-mirror-state SHA=8c70c7c 2026-05-25 11:30:16 +00:00
8c70c7c031 chore(docs): sync GDRIVE_MIRROR_BOOT 2026-05-25T11:30 UTC [HEAD 3058144] 2026-05-25 11:30:15 +00:00
3058144984 chore(sessions): logg 2026-05-25 github-boot-status-gdrive-review 2026-05-25 13:29:14 +02:00
59d7e0f973 fix(scripts): restore +x permissions permanent i git 2026-05-25 11:23:24 +00:00
dd12736bc7 chore(todo): full oppdatering NOW/NEXT/DONE 2026-05-25 2026-05-25 11:18:54 +00:00
c93bc3d2eb chore(state): oppdater .gdrive-mirror-state SHA=aeafcf2 2026-05-25 11:11:13 +00:00
aeafcf27f2 chore(docs): sync GDRIVE_MIRROR_BOOT 2026-05-25T11:11 UTC [HEAD d3daa49] 2026-05-25 11:11:12 +00:00
d3daa49cfa fix(scripts): restore execute permissions 2026-05-25 11:11:04 +00:00
0d22edbd0b
fix(sessions): fjern parenteser fra YAML-frontmatter 2026-05-25
Updated session log for GDrive/GitHub mirror sync, fixing bugs and enhancing features. Added new tasks and decisions for future phases.
2026-05-25 13:09:34 +02:00
b0fc2af648
docs(sessions): oppdater 2026-05-25 med YAML session-close format 2026-05-25 13:02:38 +02:00
ac04f76784
docs(sessions): oppdater index.md med sesjon 2026-05-25 2026-05-25 12:59:53 +02:00
54bcd7924a
docs(sessions): sesjonslogg 2026-05-25 GDrive/GitHub mirror sync
Added session log for GDrive/GitHub mirror sync detailing objectives, completed tasks, and unresolved issues.
2026-05-25 12:58:57 +02:00
d9f300d9ea
fix(boot): opax-logg-slutt auto-commit+push sesjonslogg til GitHub
Add auto-commit and push for session log to GitHub if changes exist.
2026-05-25 12:57:27 +02:00
1dd47b0f9a chore(state): oppdater .gdrive-mirror-state SHA=6a5d53c 2026-05-25 10:49:19 +00:00
6a5d53ccb0 chore(docs): sync GDRIVE_MIRROR_BOOT 2026-05-25T10:49 UTC [HEAD 5886d01] 2026-05-25 10:49:18 +00:00
5886d019de chore(state): oppdater .gdrive-mirror-state SHA=bb31edc 2026-05-25 10:48:19 +00:00
bb31edc78a chore(docs): sync GDRIVE_MIRROR_BOOT 2026-05-25T10:48 UTC [HEAD f08eea2] 2026-05-25 10:48:18 +00:00
f08eea2d9f
fix(scripts): skriv state-fil ETTER push — PS1 gul-fix 2026-05-25 12:46:31 +02:00
1b62122cc0 chore(docs): sync GDRIVE_MIRROR_BOOT 2026-05-25T10:36 UTC [HEAD a16d1da] 2026-05-25 10:36:25 +00:00
a16d1dabfd fix(boot): PS1 bruker kun lokal SHA (ikke remote) + legg til ls alias 2026-05-25 12:35:05 +02:00
9cebc3a95e chore(docs): sync GDRIVE_MIRROR_BOOT 2026-05-25T10:31 UTC [HEAD 98dec05] 2026-05-25 10:31:16 +00:00
98dec052ad feat(boot): farget PS1-prompt med OSVauco-statusindikator 2026-05-25 12:29:04 +02:00
47585e248c fix(boot): bruk /health endepunkt for OPAX ping-sjekk (ikke /ping) 2026-05-25 12:23:48 +02:00
aa0ff9f974 chore(docs): sync GDRIVE_MIRROR_BOOT 2026-05-25T09:58 UTC [HEAD c733eea] 2026-05-25 09:58:59 +00:00
c733eea613 fix(workflow): fjern push-trigger — kjør kun schedule (03:00 UTC) + workflow_dispatch 2026-05-25 11:45:23 +02:00
1cea31d50c fix(boot): rename opax-logg-slutt() til opax_logg_slutt() — bindestrek i funksjonsnavn ugyldig i -bash (Cloud Shell) 2026-05-25 11:43:06 +02:00
c4c3d72b3e chore(docs): sync GDRIVE_MIRROR_BOOT 2026-05-25T09:40 UTC [HEAD 5728024] 2026-05-25 09:40:06 +00:00
5728024b21
feat(gdrive-mirror): GDrive/GitHub paritet, backup, PROMPT_COMMAND logging (#1)
- GDRIVE_MIRROR_BOOT.md med staleness-varsel (12t terskel) og connector-prioritet
- sync-gdrive-mirror.sh: auto-tidsstempel, prosjektindeks, .gdrive-mirror-state
- osvauco-opax-boot.sh: alias auto-inject ~/.bashrc, GitHub vs lokal HEAD, PROMPT_COMMAND terminal-logging
- opax-logg-slutt.sh standalone
- .github/workflows/backup-gdrive-nightly.yml: nattlig git bundle + nøkkelfiler til GDrive
- docs/GDRIVE_SETUP.md: ett-gangs oppsett-guide for rclone + IAM
- docs/TODO.md: IAM/secrets-oppsett + gemini TUI-logging som neste oppgaver
2026-05-25 11:39:28 +02:00
25e36de810 session(2026-05-24): operator suite heavy lifts, RAG graceful degrade, docs hardening, RAG secondary project plan 2026-05-24 20:32:29 +02:00
e53503289a fix(boot): load nvm before launching gemini so PATH is correct in script subshell 2026-05-24 19:33:34 +02:00
68ac4fde35 fix(rag): correct corpus payload to vectorDbConfig.ragManagedDb; verify engine config actually switched before creating
- RagCorpus REST body uses vectorDbConfig.ragManagedDb (not ragManagedDbConfig)
- RagManagedDb has no tier field - empty object {} = serverless
- Add GET+verify step after PATCH to confirm spanner key is gone before proceeding
- Print actual engine config state so failures are immediately visible
2026-05-24 19:26:10 +02:00
db3807bff9 fix(rag): use ragManagedDbConfig.basic in corpus body; fix engine config PATCH with scaled→basic switch
The v1beta1 API uses ragManagedDbConfig (not vectorDbConfig) on the RagCorpus
resource itself. Omitting it causes the engine to default to Spanner. Also the
engine config PATCH must use {"ragManagedDbConfig":{"basic":{}}} with the
correct field name matching v1beta1 schema.
2026-05-24 19:23:30 +02:00
2838534296 fix(rag): always patch ragEngineConfig in us-central1; drop vectorDbConfig from corpus creation
Two root causes fixed:
1. ragEngineConfig is a project-level control-plane endpoint that only exists in
   us-central1. Patching it against europe-west1 (or any other region) returns
   'Invalid endpoint name'. We now always use us-central1 for the config PATCH
   regardless of RAG_LOCATION.
2. Including vectorDbConfig.ragManagedDb in the corpus creation payload explicitly
   requests Spanner mode, which is allowlist-restricted for new projects. Omitting
   vectorDbConfig entirely lets the engine honour the project-level 'basic' config
   and use serverless mode — the correct approach per Google docs."
2026-05-24 19:19:12 +02:00
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