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:
@@ -184,7 +184,6 @@ LINT = load_lint_module()
|
||||
VETO_PATTERN_NAMES = {
|
||||
"findShapeById con 2 argumentos",
|
||||
"propiedad .layout inexistente",
|
||||
"flex.appendChild",
|
||||
"fontSize/fontWeight/lineHeight/letterSpacing numerico",
|
||||
"import_image / importImage / createImage / filePath",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user