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

test: verify color guidance is separated from label names to prevent miscopying

[._.]/ Adam Eivye5b61f9968f1
diff --git a/server/lib/dispatchLabels.test.js b/server/lib/dispatchLabels.test.js
index a3a2197af8..8c4125abc3 100644
--- a/server/lib/dispatchLabels.test.js
+++ b/server/lib/dispatchLabels.test.js
@@ -373,7 +373,10 @@ describe('shared guidance', () => {
expect(MANDATORY_DISPATCH_HINT_GUIDANCE).toContain('help wanted');
expect(MANDATORY_DISPATCH_HINT_GUIDANCE).toContain('Issue-quality gate');
for (const name of Object.keys(DISPATCH_LABEL_COLORS)) {
- expect(MANDATORY_DISPATCH_HINT_GUIDANCE).toContain(`${name} ${DISPATCH_LABEL_COLORS[name]}`);
+ // Verify that colors are included in guidance but separated from names to prevent miscopying
+ expect(MANDATORY_DISPATCH_HINT_GUIDANCE).toContain(DISPATCH_LABEL_COLORS[name]);
+ // Ensure the guidance doesn't use the old format that embeds names and colors together
+ expect(MANDATORY_DISPATCH_HINT_GUIDANCE).not.toContain(`${name} ${DISPATCH_LABEL_COLORS[name]}`);
}
expect(MANDATORY_DISPATCH_HINT_GUIDANCE).toContain('REQUIRED on every issue you file');
expect(MANDATORY_DISPATCH_HINT_GUIDANCE).not.toContain('Omit an axis rather than guessing');