← back to Wallco Ai
settlement: pre-generation legal gate + wallco-ai/scripts/settlement-gate.js helper; wired into bamboo→cane regen script
bbf4173a4370da567d2778e000d28f54066c9949 · 2026-05-13 12:16:22 -0700 · SteveStudio2
Files touched
M scripts/regen-bamboo-trellis-to-cane.js
Diff
commit bbf4173a4370da567d2778e000d28f54066c9949
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Wed May 13 12:16:22 2026 -0700
settlement: pre-generation legal gate + wallco-ai/scripts/settlement-gate.js helper; wired into bamboo→cane regen script
---
scripts/regen-bamboo-trellis-to-cane.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/regen-bamboo-trellis-to-cane.js b/scripts/regen-bamboo-trellis-to-cane.js
index 9393185..c147041 100644
--- a/scripts/regen-bamboo-trellis-to-cane.js
+++ b/scripts/regen-bamboo-trellis-to-cane.js
@@ -53,6 +53,12 @@ async function generateOne(v, idx) {
if (!fs.existsSync(srcPath)) throw new Error(`source not found: ${srcPath}`);
const imageB64 = fs.readFileSync(srcPath).toString('base64');
const fullPrompt = v.prompt + ' ' + SHARED;
+ // Settlement gate — refuses to call Gemini if the assembled prompt would
+ // satisfy BOTH Part A (directional leaves + open space + multi-color) AND
+ // Part B (banana / grape / bird / butterfly). For this batch the source
+ // butterflies are on a cane lattice with explicit "no leaves" — should be
+ // OK; verify per-variant before paying for an image-gen call.
+ gateOrExit(fullPrompt);
const body = {
contents: [{
parts: [
← 1e5fc81 snapshot: backup runtime state (3 files)
·
back to Wallco Ai
·
wallco-ai: gate butterfly-trellis + drunk-animals batches th 45ff467 →