refactor: reinforce harness to prevent contract violations

- verify.sh: validate prohibited dirs, gate nomenclature, feature schema, runtime consistency
- orquestra-status: block direct writes to backlog/features.json
- install.sh: add build artifacts to .gitignore template
- AGENTS.md: document prohibited dirs, gate nomenclature, feature schema
- Reset runtime-status to idle state
This commit is contained in:
rikrdo
2026-08-17 18:59:39 +02:00
parent 634525fa21
commit 70ff54cfa3
5 changed files with 103 additions and 138 deletions

View File

@@ -215,6 +215,14 @@ function guardWriteOrEdit(event: ToolCallEvent, ctx: ExtensionContext): { block?
};
}
// Bloquear escrituras directas a backlog/features.json (debe usar close_feature.py)
if (relPath === "backlog/features.json") {
return {
block: true,
reason: `Orquestra bloqueó '${relPath}': NUNCA edites backlog/features.json directamente. Usa scripts/close_feature.py para cerrar features. Este script valida gates y actualiza el backlog automáticamente.`,
};
}
if (isRootProductFile(relPath)) {
return {
block: true,