feat: implement memory and evidence administration with guided repairs
Publish documentation / publish (push) Successful in 1m27s
Publish documentation / publish (push) Successful in 1m27s
Add PostgreSQL-backed memory, editable evidence with source review and activation, and human-approved archive repairs across the harness, API, and UI. Include migrations, deployment support, regression coverage, and validation documentation. Refresh permissions from validated session roles so existing administrator logins can access newly deployed archive management features.
This commit is contained in:
@@ -152,7 +152,7 @@ const FORBIDDEN = [
|
||||
/\btht\s+decision\s+add\b/,
|
||||
/\btht\s+cte\s+plan\b/,
|
||||
// La promozione in memoria passa dal reviewer (reviewer_memory_promote), mai da shell.
|
||||
/\btht\s+memory\s+(promote|save-one)\b/,
|
||||
/\btht\s+memory\s+(promote|save-one|review-apply|repair-apply|create|update|delete|admin|index)\b/,
|
||||
// La re-introspezione del DWH (~3 min) è manutenzione fuori sessione, mai in workflow.
|
||||
/\btht\s+schema\s+introspect\b[^\n]*--refresh/,
|
||||
];
|
||||
@@ -627,9 +627,17 @@ export default function (pi) {
|
||||
},
|
||||
memory: {
|
||||
execute: (ctx, args) => tht(ctx, ["memory", ...args]),
|
||||
mutate: (ctx, args, recovery) => relayIfThtFails(
|
||||
ctx, ["memory", ...args], recovery,
|
||||
),
|
||||
mutate: async (ctx, args, recovery) => {
|
||||
try {
|
||||
const result = JSON.parse(tht(ctx, ["memory", ...args]));
|
||||
if (result.indexed === false) {
|
||||
await ctx.ui.notify("Memory saved. Index update is incomplete; an administrator can retry it in Memory management.", "warning");
|
||||
}
|
||||
return null;
|
||||
} catch (error) {
|
||||
return textResult(`${(error.stderr || error.message || String(error)).toString().trim()} ${recovery}`);
|
||||
}
|
||||
},
|
||||
},
|
||||
ledger: {
|
||||
validate: validateDecisionTypes,
|
||||
|
||||
Reference in New Issue
Block a user