You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/utils/aiProviders.js
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,17 @@ PROFESSIONAL OUTPUT RULES FOR ${toolName}:
171
171
- STRONG_VERIFICATION means the verification directly confirms the intended operational outcome.
172
172
- WEAK_VERIFICATION means the verification is indirect, partial, or only confirms process/status.
173
173
- AMBIGUOUS_VERIFICATION means the verification may pass while the real issue remains unresolved or needs interpretation.
174
+
- Always include operational safety scoring fields: remediation_safety, evidence_quality, rollback_confidence.
175
+
- remediation_safety must use ONLY: READ_ONLY_SAFE, REVERSIBLE_SAFE, PARTIAL_RISK, HIGH_RISK, DESTRUCTIVE.
176
+
- evidence_quality must use ONLY: DIRECT_EVIDENCE, PARTIAL_EVIDENCE, ASSUMPTION_HEAVY.
177
+
- rollback_confidence must use ONLY: ROLLBACK_NOT_REQUIRED, VERIFIED_ROLLBACK, PARTIAL_ROLLBACK, UNKNOWN_ROLLBACK.
178
+
- remediation_safety measures how safe the proposed action is, not how likely the diagnosis is.
179
+
- evidence_quality measures how directly the input supports the diagnosis.
180
+
- rollback_confidence measures whether rollback is required, realistic, and validated.
181
+
- Use ROLLBACK_NOT_REQUIRED when the recommended workflow is read-only or does not change system state.
182
+
- VERIFIED_ROLLBACK must only be used when the previous state, configuration, image version, snapshot, backup, or reversible action is explicitly known or captured.
183
+
- UNKNOWN_ROLLBACK must be used when state-changing remediation is suggested but no validated previous state, backup, or rollback target exists.
184
+
- PARTIAL_ROLLBACK should be used when rollback is theoretically possible but incomplete, risky, or dependent on unknown prior state.
174
185
- Always include rollback guidance. If no rollback is needed, say exactly: "No rollback needed for read-only checks."
175
186
- rollback_reversibility must use ONLY: FULLY_REVERSIBLE, PARTIALLY_REVERSIBLE, NON_REVERSIBLE_WITHOUT_BACKUP. Do not invent extended enum values.
176
187
- Use arrays for command blocks: fix_commands, verification_commands, rollback_commands. Each array item must be one complete shell command or one comment line starting with #.
0 commit comments