Phase 6.4.25c: correct flex.appendChild -- live verification shows it works

Live probing against Penpot 2.16.2 (repeated, on a dedicated scratch page,
cleaned up afterwards) shows board.flex.appendChild(shape) is a real
function, distinct from board.appendChild, arity 1, throws nothing, and
preserves visual insertion order -- unlike board.appendChild, which still
inserts at the front as documented. The prior "broken" claim traces to the
MCP server's own high_level_overview() text (CRITICAL / BROKEN / NEVER use),
never verified with a live throw, and possibly confused with a real doc bug
that mislabels the grid 3-arg example as board.flex.

Removes flex.appendChild from the lint's FORBIDDEN patterns and from the
gate 5 forbidden-behavior veto, updates PENPOT_API_VERIFIED.md with the
verified facts, and drops the now-obsolete pattern from the replay filters
in 05_build_dataset.py and 07_build_lora2_mix.py.
This commit is contained in:
2026-08-04 17:40:16 +00:00
parent 3496051f72
commit 7a1577b9d7
5 changed files with 34 additions and 17 deletions
-1
View File
@@ -302,7 +302,6 @@ def apply_prefix(content, prefix, mode):
FORBIDDEN_PATTERN_NAMES = [
"findShapeById con 2 argumentos",
"propiedad .layout inexistente",
"flex.appendChild",
"import_image / importImage / createImage / filePath",
"textAlign",
"typography.setFont",