| 1 | package config |
| 2 | |
| 3 | import "strings" |
| 4 | |
| 5 | // Completion-validation modes, mirrored from the agent layer. |
| 6 | const ( |
| 7 | CompletionValidationOff = "off" |
| 8 | CompletionValidationShadow = "shadow" |
| 9 | CompletionValidationEnforce = "enforce" |
| 10 | ) |
| 11 | |
| 12 | // CompletionValidationModeEnv is retained so older config readers and process |
| 13 | // launchers continue to recognize the historical setting. It no longer |
| 14 | // changes runtime behavior. |
| 15 | const CompletionValidationModeEnv = "REASONIX_COMPLETION_VALIDATION_MODE" |
| 16 | |
| 17 | // CompletionValidationMode returns off because the completion validator was |
| 18 | // removed. The method remains as a compatibility shim for old callers. |
| 19 | func (a AgentConfig) CompletionValidationMode() string { |
| 20 | return CompletionValidationOff |
| 21 | } |
| 22 | |
| 23 | // ValidateCompletionValidation accepts the retired setting so old config files |
| 24 | // continue to load. The value is ignored by the runtime. |
| 25 | func ValidateCompletionValidation(value string) error { |
| 26 | return nil |
| 27 | } |
| 28 | |
| 29 | func validateCompletionValidationModes(configured string) error { |
| 30 | return ValidateCompletionValidation(configured) |
| 31 | } |
| 32 | |
| 33 | // renderRecoveryAndCompletionValidation keeps the renderer call stable while |
| 34 | // deliberately omitting the retired completion-validator settings. |
| 35 | func renderRecoveryAndCompletionValidation(b *strings.Builder, c *Config) { |
| 36 | // recovery_model and completion-validation settings are accepted on input |
| 37 | // for compatibility but no longer participate in execution or new config. |
| 38 | } |
| 39 | |
| 40 | // diffRecoveryAndCompletionValidation retains the historical renderer hook; |
| 41 | // retired completion-validator settings are intentionally never emitted. |
| 42 | func diffRecoveryAndCompletionValidation(agentBuf *strings.Builder, c, d Config, anyAgent *bool) { |
| 43 | } |
| 44 |