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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user