feat: resource type validation, 100K max tokens, and auto-split improvements

- Add SQLite-based resource type validation with suggestions for invalid types
- Increase Terraform max_tokens from 32K to 100K for large infra generation
- Generate resource reference at startup to survive volume mount overwrites
- Add invalid resource type examples to system prompt (RPC peer, subnet route table)
- Add prompt size logging for Terraform agent
- Translate remaining Portuguese code comment to English
This commit is contained in:
nogueiraguh
2026-03-09 01:10:33 -03:00
parent 6fb2eecddf
commit a5b8f6903a
2 changed files with 164 additions and 2 deletions

View File

@@ -327,7 +327,7 @@ def _finding_in_compartment(finding, compartment_id):
if fcomp == compartment_id:
return True
if fcomp is None:
return True # recurso sem compartment (IAM tenancy-level) → incluir
return True # resource without compartment (IAM tenancy-level) → include
return False