feat(memory,runs,governance): remember each target's incidents, cite them in a run, and propose a root-cause fix after K with one cause (archie #1993)
This commit is contained in:
14 files changed
+774
-26
No files matched your search
@@ -21,6 +21,7 @@ const emit = defineEmits<{ unauthorized: [] }>();
|
||||
const deadline = ref("24h");
|
||||
const raiseAfter = ref(3);
|
||||
const frozen = ref(false);
|
||||
const threshold = ref(5);
|
||||
const saved = ref("");
|
||||
const loading = ref(true);
|
||||
const saving = ref(false);
|
||||
@@ -35,6 +36,7 @@ async function load() {
|
||||
deadline.value = set.approval_deadline;
|
||||
raiseAfter.value = set.raise_after;
|
||||
frozen.value = set.frozen;
|
||||
threshold.value = set.recurrence_threshold;
|
||||
} catch (err) {
|
||||
fail(err);
|
||||
} finally {
|
||||
@@ -47,7 +49,12 @@ async function save() {
|
||||
error.value = "";
|
||||
saved.value = "";
|
||||
try {
|
||||
await saveSettings({ approval_deadline: deadline.value, raise_after: raiseAfter.value, frozen: frozen.value });
|
||||
await saveSettings({
|
||||
approval_deadline: deadline.value,
|
||||
raise_after: raiseAfter.value,
|
||||
frozen: frozen.value,
|
||||
recurrence_threshold: threshold.value,
|
||||
});
|
||||
saved.value = "Saved.";
|
||||
} catch (err) {
|
||||
fail(err);
|
||||
@@ -90,6 +97,18 @@ onBeforeUnmount(() => controller.abort());
|
||||
<p class="text-caption text-muted-foreground">
|
||||
Approvals in a row, since a class was last tightened, before Archie proposes raising it one level.
|
||||
</p>
|
||||
<SettingRow label="Recurrence threshold" for="recurrence-threshold">
|
||||
<NumberField v-model="threshold" :min="2" :max="100" class="w-32">
|
||||
<NumberFieldContent>
|
||||
<NumberFieldDecrement />
|
||||
<NumberFieldInput id="recurrence-threshold" class="font-mono" />
|
||||
<NumberFieldIncrement />
|
||||
</NumberFieldContent>
|
||||
</NumberField>
|
||||
</SettingRow>
|
||||
<p class="text-caption text-muted-foreground">
|
||||
Incidents with the same cause on one target, whatever their outcome, before Archie proposes a root-cause fix.
|
||||
</p>
|
||||
<SettingRow label="Freeze" for="frozen" tone="danger">
|
||||
<Switch id="frozen" v-model="frozen" aria-label="Freeze" />
|
||||
</SettingRow>
|
||||
|
||||
@@ -144,6 +144,7 @@ export interface Settings {
|
||||
raise_after: number;
|
||||
/** Holds every action that changes something at propose and wait. */
|
||||
frozen: boolean;
|
||||
recurrence_threshold: number;
|
||||
}
|
||||
|
||||
export const getSettings = (signal?: AbortSignal) => get<Settings>("/api/settings", signal);
|
||||
|
||||
Reference in new issue
Block a user