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

ci: register the global-shadow guard so PR selection can reach it

Adam Eivy67a4e85e644f
diff --git a/scripts/ci-test-plan.js b/scripts/ci-test-plan.js
index c7ebdbc32a..bef2c3f611 100644
--- a/scripts/ci-test-plan.js
+++ b/scripts/ci-test-plan.js
@@ -309,11 +309,13 @@ const structuralTestsFor = (changedFiles, trackedSet) => {
// Both `.js` and `.jsx`: the StrictMode mounted-ref bug the first guard covers
// reached its widest blast radius through a plain-`.js` hook (`useAsyncAction`),
// so a `.jsx`-only trigger would miss the case that matters most, and the
- // responsive-grid, popover-clamp, safe-storage, and heading-truncation guards
- // read class strings, storage accesses, and JSX markup out of both extensions.
+ // responsive-grid, popover-clamp, safe-storage, heading-truncation, and
+ // global-shadow guards read class strings, storage accesses, declarations, and
+ // JSX markup out of both extensions.
// None of these files has a source sibling or imports an app module, so nothing
// else selects them — without this entry they only ever run on a full suite.
if (changedFiles.some((path) => /^client\/src\/.*\.jsx?$/.test(path))) {
+ add('client/src/globalShadowConventions.test.js');
add('client/src/headingTruncationConventions.test.js');
add('client/src/hooks/mountedRefConventions.test.js');
add('client/src/pollingConventions.test.js');
diff --git a/scripts/repo-scan-guards.test.js b/scripts/repo-scan-guards.test.js
index be4013d46b..37b814537b 100644
--- a/scripts/repo-scan-guards.test.js
+++ b/scripts/repo-scan-guards.test.js
@@ -38,6 +38,7 @@ const STRUCTURALLY_SELECTED = new Map([
// client/src/**.jsx (a11y) or .js/.jsx (mounted-ref) file changes, which is
// the only way either can start failing.
['client/src/a11yConventions.test.js', 'structuralTestsFor: client/src/**.jsx'],
+ ['client/src/globalShadowConventions.test.js', 'structuralTestsFor: client/src/**.js(x)'],
['client/src/headingTruncationConventions.test.js', 'structuralTestsFor: client/src/**.js(x)'],
['client/src/hooks/mountedRefConventions.test.js', 'structuralTestsFor: client/src/**.js(x)'],
['client/src/pollingConventions.test.js', 'structuralTestsFor: client/src/**.js(x)'],