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

fix: sync the area-label vocabulary with the tracker and guard preset labels (#9141)

Adam Eivy7bcbbe0c5e57
diff --git a/server/lib/dispatchLabels.js b/server/lib/dispatchLabels.js
index 45ca7de8fb..66f9d9ffa6 100644
--- a/server/lib/dispatchLabels.js
+++ b/server/lib/dispatchLabels.js
@@ -700,27 +700,33 @@ export const MANDATORY_JIRA_DISPATCH_HINT_GUIDANCE = JIRA_DISPATCH_HINT_GUIDANCE
* Current PortOS scope-label vocabulary. The forge remains the source of truth
* at filing time (`gh label list --search area:` / `glab label list`), while this
* list keeps autonomous prompts aware of the established labels instead of
- * inventing a new area for every reference study.
+ * inventing a new area for every reference study. Sorted and unique; snapshot
+ * of the tracker taken 2026-09-29.
*/
export const PORTOS_AREA_LABELS = Object.freeze([
- 'area:database',
- 'area:songs',
- 'area:federation',
- 'area:pipeline',
- 'area:story-builder',
- 'area:writers-room',
- 'area:create',
- 'area:openworld',
'area:brain',
- 'area:cos-agents',
- 'area:identity',
+ 'area:calendar',
+ 'area:ci',
'area:content',
+ 'area:cos-agents',
+ 'area:create',
+ 'area:cybercity',
+ 'area:database',
'area:devtools',
- 'area:ui',
- 'area:post',
- 'area:privacy',
+ 'area:federation',
+ 'area:identity',
'area:life-tracking',
+ 'area:local-models',
'area:media',
+ 'area:pipeline',
+ 'area:post',
+ 'area:privacy',
+ 'area:songs',
+ 'area:sprites',
+ 'area:story-builder',
+ 'area:ui',
+ 'area:voice',
+ 'area:writers-room',
]);
/** Shared scope guidance for the one-shot repo-study label contract. */
diff --git a/server/lib/dispatchLabels.test.js b/server/lib/dispatchLabels.test.js
index 992af6cb86..16b95abc4e 100644
--- a/server/lib/dispatchLabels.test.js
+++ b/server/lib/dispatchLabels.test.js
@@ -1,3 +1,4 @@
+import { readFileSync } from 'node:fs';
import { describe, expect, it } from 'vitest';
import {
DISPATCH_MODEL_TIERS,
@@ -395,6 +396,13 @@ describe('shared guidance', () => {
it('keeps the PortOS area vocabulary and repo-study complete-label contract explicit', () => {
expect(PORTOS_AREA_LABELS).toContain('area:cos-agents');
expect(PORTOS_AREA_LABELS).toContain('area:media');
+ expect([...PORTOS_AREA_LABELS]).toEqual([...new Set(PORTOS_AREA_LABELS)].sort());
+ });
+
+ it('only names area labels in quota-burn presets that exist in the vocabulary', () => {
+ const src = readFileSync(new URL('./quotaBurnPresets.js', import.meta.url), 'utf8');
+ const literals = [...new Set(src.match(/area:[a-z-]+/g) ?? [])];
+ expect(literals.filter((l) => !PORTOS_AREA_LABELS.includes(l))).toEqual([]);
expect(PORTOS_AREA_LABEL_GUIDANCE).toContain('area:*');
expect(PORTOS_AREA_LABEL_GUIDANCE).toContain('gh label list --search area:');
expect(REPO_STUDY_LABEL_CONTRACT.forgeFlags)
diff --git a/server/lib/quotaBurnPresets.js b/server/lib/quotaBurnPresets.js
index a6239d971c..5e1d94957d 100644
--- a/server/lib/quotaBurnPresets.js
+++ b/server/lib/quotaBurnPresets.js
@@ -526,7 +526,7 @@ harm. "Best practice says otherwise" is not one.`,
id: 'api-contract-audit',
label: 'API & route contracts',
summary: 'Endpoint validation, status codes, query/param types, and error payloads.',
- labels: '`bug`, `area:api`, `plan`',
+ labels: '`bug`, `plan`',
dedupeSearch: 'api route contract validation status code',
mission: `
# API contract audit — file issues, change nothing