[object Object]

← back to Wallco Ai

Fix monterey-mural inline settlement check: stop abaca (banana-stalk fiber) substrate from false-blocking; strip texture/substrate vocabulary before Part-B match

da2cce1268ced878c97424a3971a4aa64b15216e · 2026-06-04 00:08:06 -0700 · Steve

Files touched

Diff

commit da2cce1268ced878c97424a3971a4aa64b15216e
Author: Steve <steve@designerwallcoverings.com>
Date:   Thu Jun 4 00:08:06 2026 -0700

    Fix monterey-mural inline settlement check: stop abaca (banana-stalk fiber) substrate from false-blocking; strip texture/substrate vocabulary before Part-B match
---
 scripts/generate-monterey-mural-batch.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/scripts/generate-monterey-mural-batch.js b/scripts/generate-monterey-mural-batch.js
index 0bd5371..d1236fb 100644
--- a/scripts/generate-monterey-mural-batch.js
+++ b/scripts/generate-monterey-mural-batch.js
@@ -122,7 +122,14 @@ function settlementOK(prompt) {
   p = p
     .replace(/\b(?:no|not|without|excluding|never|avoid)\b[^.,;]*(?:banana|bird|butterfl|grape|leaf|leaves|frond|palm|foliage|tropical)[^.,;]*[.,;]?/g, ' ')
     .replace(/\bwithout\b[^.,;]*[.,;]/g, ' ')
-    .replace(/\bexcluding\b[^.,;]*[.,;]/g, ' ');
+    .replace(/\bexcluding\b[^.,;]*[.,;]/g, ' ')
+    // Strip the natural-TEXTILE substrate clause. "abaca (banana-stalk fiber)"
+    // is a DW-approved natural-material ground (CLAUDE.md rule #7), NOT a Part-B
+    // banana FRUIT/LEAF pattern element — without this, abaca's material
+    // description false-blocks the gate. Drop any parenthetical fiber gloss and
+    // the whole "Substrate: …" sentence so material vocabulary can't trip Part-B.
+    .replace(/\bsubstrate:[^.]*\./g, ' ')
+    .replace(/\((?:[^)]*\bfiber\b[^)]*)\)/g, ' ');
   const partB = [
     /\bbanana(?:s|\s+pods?)?\b/,
     /\bplantains?\b/,

← cdbae9e damask line batch-2: 6 heritage damasks live on prod (feed+P  ·  back to Wallco Ai  ·  TODO: log staged Monterey/California-coast scenic mural batc 4e561f7 →