Commit graph

12 commits

Author SHA1 Message Date
sheldon-im
944d57eedc Improve latest assistant response landmark 2026-06-30 17:13:45 +00:00
Frank Song
eff01bf322 Gate settled anchor fallbacks by raw index 2026-06-30 08:00:54 +08:00
Frank Song
7f98952db0 test: harden anchor fallback harness 2026-06-29 19:37:37 +00:00
Frank Song
7cdcadcbc4 test: lock anchor fallback render ownership 2026-06-29 19:37:37 +00:00
Frank Song
2ef838be8c test(anchor): widen JS regex extraction guard
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-28 17:05:16 +08:00
Frank Song
5b96da8c1d test(anchor): locate JS body after params
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-28 16:11:21 +08:00
Frank Song
770d877467 test(anchor): harden JS helper extraction
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-28 15:32:45 +08:00
Frank Song
9c0eecfbe9 test(anchor): include node stderr in behavior guard failures
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-28 15:03:19 +08:00
Frank Song
02a8582711 test(anchor): skip node behavior check when node missing
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-28 14:32:22 +08:00
Frank Song
ce4466bbf2 test(anchor): handle template interpolation in fallback guards
Teach the lightweight JavaScript extractor used by the anchor ownership tests to skip template literals with nested interpolation, so braces inside ${...} expressions cannot truncate the inspected function body.

Add a synthetic regression for nested template literals before the ownership-order assertions exercise static/ui.js.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-28 13:31:27 +08:00
Frank Song
2587eedb54 test(anchor): harden fallback ownership guards
Defer fixture file reads to test-time helpers so missing assets fail with clear assertion messages instead of import-time collection errors.

Use one Python-side function extractor for both source-structure checks and the Node behavior check, and skip JavaScript strings/comments while matching delimiters so braces inside literals do not truncate the inspected function body.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-28 12:14:18 +08:00
Frank Song
571db9d81e Document anchor fallback ownership 2026-06-28 12:09:12 +08:00