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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: quote contributor labels and give GitLab the same create form
[._.]/ Adam Eivy8b9b6a04ad54
diff --git a/server/lib/dispatchLabels.js b/server/lib/dispatchLabels.jsindex b85c199a66..660f1ed18c 100644--- a/server/lib/dispatchLabels.js+++ b/server/lib/dispatchLabels.js@@ -14,6 +14,8 @@* because `model` happened to be `light`.*/+import { shellQuote } from './shellQuote.js';+export const DISPATCH_MODEL_TIERS = Object.freeze(['light', 'medium', 'heavy']);export const DISPATCH_EFFORT_LEVELS = Object.freeze(['low', 'medium', 'high', 'xhigh', 'max']);@@ -188,18 +190,18 @@ export function allDispatchLabelSpecs() {export function formatLabelCreateCommand(name, { cli = 'gh' } = {}) {const spec = dispatchLabelSpec(name);if (!spec) return null;- const quoted = spec.name.includes(' ') ? `"${spec.name}"` : spec.name;+ const quoted = shellQuote(spec.name);if (cli === 'glab') {- return `glab label create --name ${quoted} --color "#${spec.color}" --description "${spec.description}" 2>/dev/null || true`;+ return `glab label create --name ${quoted} --color ${shellQuote(`#${spec.color}`)} --description ${shellQuote(spec.description)} 2>/dev/null || true`;}- return `gh label create ${quoted} --color ${spec.color} --description "${spec.description}" 2>/dev/null || true`;+ return `gh label create ${quoted} --color ${spec.color} --description ${shellQuote(spec.description)} 2>/dev/null || true`;}/** Repeated `--label <name>` flags — one per label, never a comma list. */export function formatRepeatedLabelFlags(labels = []) {return labels.filter((label) => typeof label === 'string' && label.trim())- .map((label) => `--label ${label.trim()}`)+ .map((label) => `--label ${shellQuote(label.trim())}`).join(' ');}@@ -215,8 +217,9 @@ export const DISPATCH_HINT_GUIDANCE = ['Choose each axis only when the work you just inspected justifies it. Omit an axis rather than guessing. Do NOT stamp `medium` on both by reflex, and do NOT put `[model:…]` / `[effort:…]` / `[category]` / `[SEVERITY]` in the title — those belong in labels.','Create each missing hint label immediately before applying it (`gh label create <name> --color <hex> 2>/dev/null || true`; glab needs `--name` and `#<hex>`). Colors: model:light D4C5F9, model:medium A371F7, model:heavy 6F42C1, effort:low BFE5E5, effort:medium 76C7C7, effort:high 1D7874, effort:xhigh 0E4F4C, effort:max 05403D.','Also apply contributor labels when the work actually fits them — independently of `model:`/`effort:`:',- '- `good first issue` (color 7057FF) — self-contained, well-specified, a new contributor can ship it without deep repo context. A `model:light` 40-file sweep is NOT a good first issue. Create with `gh label create "good first issue" --color 7057FF 2>/dev/null || true`.',- '- `help wanted` (color 008672) — extra hands welcome and the body is scoped enough to pick up cold. Create with `gh label create "help wanted" --color 008672 2>/dev/null || true`.',+ '- `good first issue` (color 7057FF) — self-contained, well-specified, a new contributor can ship it without deep repo context. A `model:light` 40-file sweep is NOT a good first issue.',+ '- `help wanted` (color 008672) — extra hands welcome and the body is scoped enough to pick up cold.',+ 'Create those two with the same `gh` / `glab label create` form as the dispatch hints (quote the name; glab still needs `--name` and `#<hex>`).','Use repeated `--label` flags (one per label). Preserve existing category/scope labels (`plan`, `ux`, `bug`, `tests`, `layered-intelligence`, …). Never relabel a deduplicated existing issue.',].join('\n');diff --git a/server/lib/dispatchLabels.test.js b/server/lib/dispatchLabels.test.jsindex bca5f2d151..55bf71088b 100644--- a/server/lib/dispatchLabels.test.js+++ b/server/lib/dispatchLabels.test.js@@ -112,14 +112,14 @@ describe('label specs and CLI formatting', () => {it('formats idempotent gh / glab create commands with slashdo colors', () => {expect(formatLabelCreateCommand('model:light')).toBe(- 'gh label create model:light --color D4C5F9 --description "Dispatch capability: cheapest capable coding model" 2>/dev/null || true',+ "gh label create model:light --color D4C5F9 --description 'Dispatch capability: cheapest capable coding model' 2>/dev/null || true",);expect(formatLabelCreateCommand('effort:max', { cli: 'glab' })).toBe(- 'glab label create --name effort:max --color "#05403D" --description "Dispatch reasoning effort: maximum" 2>/dev/null || true',+ "glab label create --name effort:max --color '#05403D' --description 'Dispatch reasoning effort: maximum' 2>/dev/null || true",);expect(formatLabelCreateCommand('plan')).toBe(null);expect(formatLabelCreateCommand(GOOD_FIRST_ISSUE_LABEL)).toBe(- 'gh label create "good first issue" --color 7057FF --description "Self-contained work a new contributor can ship without deep repo context" 2>/dev/null || true',+ "gh label create 'good first issue' --color 7057FF --description 'Self-contained work a new contributor can ship without deep repo context' 2>/dev/null || true",);});@@ -142,6 +142,8 @@ describe('label specs and CLI formatting', () => {.toBe('--label plan --label model:light --label effort:max');expect(formatRepeatedLabelFlags(['ux', '', null, 'plan'])).toBe('--label ux --label plan');expect(formatRepeatedLabelFlags([])).toBe('');+ expect(formatRepeatedLabelFlags([GOOD_FIRST_ISSUE_LABEL, HELP_WANTED_LABEL]))+ .toBe("--label 'good first issue' --label 'help wanted'");});});@@ -156,6 +158,7 @@ describe('shared guidance', () => {expect(DISPATCH_HINT_GUIDANCE).toContain('good first issue');expect(DISPATCH_HINT_GUIDANCE).toContain('help wanted');expect(DISPATCH_HINT_GUIDANCE).toContain('NOT a good first issue');+ expect(DISPATCH_HINT_GUIDANCE).toContain('glab label create');expect(JIRA_DISPATCH_HINT_GUIDANCE).toContain('model-light|model-medium|model-heavy');expect(JIRA_DISPATCH_HINT_GUIDANCE).toContain('effort-low|effort-medium|effort-high|effort-xhigh|effort-max');expect(JIRA_DISPATCH_HINT_GUIDANCE).toContain('good-first-issue');diff --git a/server/services/taskPromptDefaults/integrity.snapshot.json b/server/services/taskPromptDefaults/integrity.snapshot.jsonindex b04875e67f..6a8134d959 100644--- a/server/services/taskPromptDefaults/integrity.snapshot.json+++ b/server/services/taskPromptDefaults/integrity.snapshot.json@@ -26,7 +26,7 @@"jira-status-report": "9d374a9d8ccb92c5c8fd0aa9899e79a5","branch-cleanup": "8fdeb4acc2749816a47ca318b6602721","branch-reconcile": "16479f4b64395103fd222dc9608830b1",- "issue-reconcile": "4d0d92a9e10beed7f09dea4e3f873150",+ "issue-reconcile": "6f33db6ad0b57c36909229694b78891a","pr-reviewer": "add27b67daa6aa2c75717ac96a6bd625","pr-reviewer-security": "2050297d1cdb081a8576a781828ee44f","pr-reviewer-review": "21ccd5d3a6f3eea16c479db9ed9aedaa",diff --git a/server/services/taskPromptDefaults/prompts.js b/server/services/taskPromptDefaults/prompts.jsindex 399cf1071b..ff719ab29d 100644--- a/server/services/taskPromptDefaults/prompts.js+++ b/server/services/taskPromptDefaults/prompts.js@@ -1515,7 +1515,7 @@ Use only if the header names JIRA. There is no forge CLI — every action is a P- To transition: GET ${PORTOS_API_URL}/api/jira/instances/<instanceId>/tickets/<KEY>/transitions to list the available transitions, pick the one whose target status matches your intent (case-insensitive), then POST ${PORTOS_API_URL}/api/jira/instances/<instanceId>/tickets/<KEY>/transition with body {"transitionId": "<id>"}.## The partial-ship hybrid (JIRA)-- **Separable remainder** → post a \`Done ✓ / Remaining ▢\` comment (POST ${PORTOS_API_URL}/api/jira/instances/<instanceId>/tickets/<KEY>/comments with body {"comment": "…"}), transition the original to **Done**, then file ONE tightly-scoped follow-up ticket for the remainder: POST ${PORTOS_API_URL}/api/jira/instances/<instanceId>/tickets with body {"projectKey": "<projectKey>", "summary": "…", "description": "…\\n\\nRefs <KEY>", "labels": ["plan", /* optional independently justified: model-light|model-medium|model-heavy, effort-low|…|effort-max, good-first-issue, help-wanted */]}. Carry over the epic/labels where sensible.+- **Separable remainder** → post a \`Done ✓ / Remaining ▢\` comment (POST ${PORTOS_API_URL}/api/jira/instances/<instanceId>/tickets/<KEY>/comments with body {"comment": "…"}), transition the original to **Done**, then file ONE tightly-scoped follow-up ticket for the remainder: POST ${PORTOS_API_URL}/api/jira/instances/<instanceId>/tickets with body {"projectKey": "<projectKey>", "summary": "…", "description": "…\\n\\nRefs <KEY>", "labels": ["plan"]}. Add independently justified labels when they fit (\`model-light\`/\`model-medium\`/\`model-heavy\`, \`effort-low\`…\`effort-max\`, \`good-first-issue\`, \`help-wanted\`). Carry over the epic/labels where sensible.- **Continuation of the same scope** → post the \`Done ✓ / Remaining ▢\` comment, then transition the ticket BACK to a not-started status (To Do / Selected for Development / Backlog — pick the transition that returns it to the To Do column) so the claim queue re-picks it. Do NOT file a follow-up.## Peer safety — avoid duplicate follow-ups