Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

document the one boundary the shared tag walk deliberately does not cross (#4337)

[._.]/ Adam Eivy727fde020882
diff --git a/client/src/a11yConventions.test.js b/client/src/a11yConventions.test.js
index 6f313bf97b..5716660b2e 100644
--- a/client/src/a11yConventions.test.js
+++ b/client/src/a11yConventions.test.js
@@ -112,6 +112,17 @@ const ANY_TAG_NAME = '[A-Za-z][\\w.-]*';
* `name` is spliced into the pattern verbatim, so a caller that wants any
* element at all passes `ANY_TAG_NAME`.
*
+ * The advance steps over the WHOLE opening tag, so an element written inside an
+ * attribute EXPRESSION (`<Foo render={<span id="notes-h">Notes</span>} />`) is
+ * not visited. That only reaches a caller scanning `ANY_TAG_NAME`, since a
+ * name-specific walk lands on the nested tag directly unless it is nested in a
+ * same-named tag — which is the false positive this advance exists to stop. No
+ * such shape is in the tree today, and the failure direction is the safe one:
+ * an id the walk cannot see reads as UNRESOLVED, so the control lands on the
+ * offender list and the rule goes red, rather than being credited a name it
+ * does not have. Teaching the walk to descend into attribute expressions is a
+ * scanner of its own; do not "fix" it by dropping the advance.
+ *
* `closers: true` additionally yields each `</Name>` as `{ closing: true, index }`
* — no `tag`/`contentStart`, since a closing tag has neither attributes nor
* children. Only `openWrapperInstancesAt` asks for them, to keep an open/close