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
feat: add plan-feature scheduled task — brainstorm one feature and file its plan to the work tracker
Adam Eivyc1e6ca81cbc4
diff --git a/client/src/components/UpcomingTasksWidget.jsx b/client/src/components/UpcomingTasksWidget.jsxindex 1b4ba569b7..6ef66cdd35 100644--- a/client/src/components/UpcomingTasksWidget.jsx+++ b/client/src/components/UpcomingTasksWidget.jsx@@ -57,6 +57,7 @@ const UpcomingTasksWidget = memo(function UpcomingTasksWidget() {'test-coverage': '🧪','documentation': '📝','feature-ideas': '💡',+ 'plan-feature': '🗺️','plan-task': '✅','claim-issue': '🎯','claim-work': '🎯',diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 1943767f05..2972f40263 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -335,3 +335,5 @@ PostgreSQL itself is not PM2-managed — it runs as the system service (`:5432`)1. Add the task type to `SELF_IMPROVEMENT_TASK_TYPES` and `DEFAULT_TASK_INTERVALS` in `server/services/taskSchedule.js`2. Add its prompt template to `DEFAULT_TASK_PROMPTS` in `server/services/taskPromptDefaults/prompts.js` (bump `PROMPT_VERSIONS` + append the outgoing default to `PREVIOUS_DEFAULT_PROMPTS` if you are changing an existing default)3. If it is an audit that should be configurable to **file issues** or **do the work**, add it to `AUDIT_DEFINITIONS` in `server/lib/auditCatalog.js` (and map any matching quota-burn preset via `quotaBurnId`)+4. If it ALWAYS files findings/plans into the app's work tracker (never implements), add a wording preset to `TRACKER_FILING_PRESETS` in `server/lib/workTracker.js` and reference `{trackerInstructions}` in its prompt template — membership is what makes `resolveTrackerFilingBlock` file on every dispatch+5. Give it a home in `WORKFLOW_STAGES` (`server/services/workflow.js`) so the Workflow tab doesn't render it under Ambientdiff --git a/server/lib/workTracker.js b/server/lib/workTracker.jsindex bc90be1980..0d9961c1ea 100644--- a/server/lib/workTracker.js+++ b/server/lib/workTracker.js@@ -210,6 +210,20 @@ export const TRACKER_FILING_PRESETS = {bodyRequirements: 'the provenance (the studied repo\'s owner/repo + its license + today\'s date), the 1–2 sentence rationale for {appName}, the `Fix:` line naming the {appName} files/functions to change, and the estimated scope',planCommitMessage: 'docs(repo-study): propose <N> item(s) from <owner/repo>',},+ // The planning-only sibling of `feature-ideas`: brainstorms ONE feature and+ // files its decision-complete plan as a tracker item instead of implementing+ // anything. The claim flows (`claim-issue` / `plan-task` / `/claim`) pick the+ // filed plan up later — that is why every recorded item carries the `plan`+ // label alongside the category one.+ 'plan-feature': {+ slugPrefix: 'plan-feature-',+ label: 'plan-feature',+ issueLabel: 'plan-feature',+ labelDescription: 'Feature plan filed by the plan-feature brainstorm',+ planItemBody: 'From the `plan-feature` brainstorm (<today\'s date>). <What the feature is and which user need or goal it serves, 1–2 sentences.> Approach: <the decided approach and the {appName} files/components it would touch>. Scope: <small/medium/large>.',+ bodyRequirements: 'the motivation (which user need or GOALS.md priority this serves), the decided approach naming the {appName} files/components it would touch, an estimated scope, acceptance criteria another agent can verify cold, and any explicit non-goals',+ planCommitMessage: 'docs(plan-feature): file <N> feature plan(s)',+ },};/**diff --git a/server/lib/workTracker.trackerInstructions.test.js b/server/lib/workTracker.trackerInstructions.test.jsindex 574a04fabf..5ce03ae94c 100644--- a/server/lib/workTracker.trackerInstructions.test.js+++ b/server/lib/workTracker.trackerInstructions.test.js@@ -166,6 +166,45 @@ describe('resolveTrackerFilingBlock — fileIssues audit types', () => {});});+describe('formatTrackerInstructions — plan-feature preset', () => {+ const planFeature = TRACKER_FILING_PRESETS['plan-feature'];++ it('carries the plan-feature slug prefix + label into every tracker block', () => {+ for (const tracker of ['plan', 'github', 'gitlab', 'jira']) {+ const block = formatTrackerInstructions(tracker, planFeature);+ expect(block).toContain('[plan-feature-…]');+ expect(block).not.toContain('ref-watch');+ expect(block).not.toContain('[ux-…]');+ }+ });++ it('labels filed forge issues `plan-feature` (+ `plan`) and dedupes by the slug stem', () => {+ const github = formatTrackerInstructions('github', planFeature);+ expect(github).toContain('gh label create plan-feature --description "Feature plan filed by the plan-feature brainstorm" --force');+ expect(github).toContain('--label plan-feature --label plan');+ expect(github).toContain('--search "plan-feature in:title"');+ const gitlab = formatTrackerInstructions('gitlab', planFeature);+ expect(gitlab).toContain('glab issue list --label plan-feature');+ expect(gitlab).toContain('--label plan-feature --label plan');+ });++ it('keeps the read-only-on-source contract in every forge block', () => {+ for (const tracker of ['github', 'gitlab', 'jira']) {+ expect(formatTrackerInstructions(tracker, planFeature)).toContain('No source-code edits');+ }+ });++ it('is an always-filing type: files without a fileIssues flag (unlike audit types)', async () => {+ const { resolveTrackerFilingBlock } = await import('./workTracker.js');+ const app = { repoPath: '/tmp/example-repo', workTracker: 'plan' };+ const block = await resolveTrackerFilingBlock(app, 'plan-feature', { fileIssues: false });+ expect(block.workTracker).toBe('plan');+ // PLAN.md is a file tracker — committing checklist items is expected.+ expect(block.worktreeChangesExpected).toBe(true);+ expect(block.trackerInstructions).toContain('docs(plan-feature): file <N> feature plan(s)');+ });+});+describe('formatTrackerInstructions — repo-study complete labels', () => {const repoStudy = TRACKER_FILING_PRESETS['repo-study'];diff --git a/server/services/cosTaskGenerator.referenceWatch.test.js b/server/services/cosTaskGenerator.referenceWatch.test.jsindex 708a8a3607..1963348d91 100644--- a/server/services/cosTaskGenerator.referenceWatch.test.js+++ b/server/services/cosTaskGenerator.referenceWatch.test.js@@ -243,6 +243,58 @@ describe('scheduled ux prompt assembly (#3273)', () => {});});+/**+ * `plan-feature` is the THIRD tracker-filing task type: like reference-watch it+ * is ALWAYS-filing (no fileIssues toggle — it is not an audit type), but worded+ * from its own TRACKER_FILING_PRESETS entry. It brainstorms one feature and+ * files its plan as a tracker item instead of implementing anything.+ */+describe('scheduled plan-feature prompt assembly', () => {+ beforeEach(() => {+ vi.clearAllMocks();+ checkReferenceRepoMock.mockResolvedValue(SNAPSHOT);+ });++ const generatePlanFeature = (app) => generate(app, 'plan-feature');++ it('injects the plan-feature-worded tracker block and expands its inner placeholders', async () => {+ const app = makeApp({ workTracker: 'github' });+ const task = await generatePlanFeature(app);+ expect(task).not.toBeNull();+ expect(task.description).not.toContain('{trackerInstructions}');+ // plan-feature wording, not reference-watch's.+ expect(task.description).toContain('[plan-feature-…]');+ expect(task.description).toContain('gh label create plan-feature');+ expect(task.description).not.toContain('ref-watch');+ // Ordering guard: {trackerInstructions} expands BEFORE {appName}/{repoPath}.+ expect(task.description).not.toContain('{appName}');+ expect(task.description).not.toContain('{repoPath}');+ expect(task.description).toContain(app.name);+ expect(task.description).toContain(app.repoPath);+ });++ it.each([+ ['github', false],+ ['gitlab', false],+ ['jira', false],+ ['plan', true],+ ])('stamps workTracker + worktreeChangesExpected off the same resolved tracker (%s → %s)', async (tracker, expected) => {+ const task = await generatePlanFeature(makeApp({ workTracker: tracker }));+ expect(task.metadata.workTracker).toBe(tracker);+ expect(task.metadata.worktreeChangesExpected).toBe(expected);+ });++ it('never checks reference repos, files without a fileIssues flag, and takes no worktree/PR posture', async () => {+ const task = await generatePlanFeature(makeApp({ referenceRepos: [] }));+ expect(task).not.toBeNull();+ expect(checkReferenceRepoMock).not.toHaveBeenCalled();+ // Always-filing (non-audit): no mode banner, no audit toggle metadata.+ expect(task.description).not.toContain('Mode: file issues, change nothing');+ expect(task.metadata.fileIssues).toBeUndefined();+ expect(task.metadata.noCodeOutput).toBeUndefined();+ });+});+describe('audit fileIssues toggle', () => {beforeEach(() => {vi.clearAllMocks();diff --git a/server/services/taskPromptDefaults/integrity.snapshot.json b/server/services/taskPromptDefaults/integrity.snapshot.jsonindex 2ff5389287..46b83f28be 100644--- a/server/services/taskPromptDefaults/integrity.snapshot.json+++ b/server/services/taskPromptDefaults/integrity.snapshot.json@@ -14,6 +14,7 @@"data-safety": "86b07f51abdbcbe7016f840b5bb0cd9b","simplify": "2a048214d1dd3b75bee9ae1a38fa1589","feature-ideas": "d3282f16da29efe2d53595b3b34778bc",+ "plan-feature": "3df6f0a46f2a524af1dc4f83dfdf0647","plan-task": "910802d67f3b5a785f068f4d90178543","claim-issue": "542ce3673abbdee93e895f9df660aaf7","claim-issue-gitlab": "348ed6348b90dcc6eead03e06df049e9",@@ -52,6 +53,7 @@"branch-reconcile": 3,"issue-reconcile": 4,"refresh-local-llm-catalog": 3,+ "plan-feature": 1,"security": 2,"code-quality": 2,"test-coverage": 2,diff --git a/server/services/taskPromptDefaults/prompts.js b/server/services/taskPromptDefaults/prompts.jsindex 4a30417ddf..77fa5fcf2c 100644--- a/server/services/taskPromptDefaults/prompts.js+++ b/server/services/taskPromptDefaults/prompts.js@@ -570,6 +570,89 @@ When PLAN.md is missing, empty, or fully completed, brainstorm and implement a n\`\`\`10. Commit with a clear description of the feature and rationale`,+ 'plan-feature': `[Improvement: {appName}] Feature Planning — brainstorm one feature and file its plan++You are the planning-only sibling of the \`feature-ideas\` task. Your job is to+research {appName}, pick ONE feature worth building, and file a decision-complete+plan for it into the app's task tracker. You do NOT implement anything.++**Read-only on source.** You do NOT edit application code, and you do NOT create+branches or PRs. Your deliverable is ONE tracker item (described under "Where to+record the plan" below) carrying a plan another agent — or a human — can pick up+and execute cold. The plan is the product.++Repository: {repoPath}++## Where to record the plan++{trackerInstructions}++## What to do++1. **Inventory so you don't duplicate.** Follow the "Inventory" step under+ "Where to record the plan" above for this app's tracker — collect every+ existing \`[plan-feature-…]\` slug. ALSO read PLAN.md from {repoPath} (if it+ exists) and skim the last 50 \`git log\` entries plus recent \`.changelog/\`+ files: an idea that is already an unchecked plan item, an open tracker item,+ or recently shipped work is NOT a candidate.++2. **Research the app the same way \`feature-ideas\` does.**++ - Read GOALS.md from {repoPath} for the app's goals and priorities. If no+ GOALS.md exists, focus on general improvements.+ - Read REJECTED.md from {repoPath} (if it exists) — do NOT re-propose an+ idea matching a rejected entry.+ - Check the repo's recently closed-unmerged PRs (\`gh pr list --state closed+ --search "is:unmerged" --limit 20\`, or the forge's equivalent) — a feature+ whose PR the user closed WITHOUT merging was rejected; treat those ideas as+ rejected too.+ - Review the codebase structure, README, and docs to understand how the app+ is built, so the plan names real files rather than imagined ones.++3. **Identify ONE small, high-impact feature** that:++ - Aligns with GOALS.md priorities (if available)+ - Is NOT already shipped, planned, or filed (per step 1)+ - Does NOT match a REJECTED.md entry or a closed-unmerged automation PR+ - Saves user time, improves UX, or makes the app more useful+ - Is self-contained and completable in one session by the agent that claims it+ - Does NOT duplicate existing functionality++4. **Write the decision-complete plan.** Every design choice is DECIDED, not+ raised as a question — make the call and state it. The filed item must carry:++ - **A slug-tagged title.** Lowercase kebab-case starting with+ \`plan-feature-\`, naming the feature (e.g.+ \`plan-feature-export-universe-to-markdown\`); ≤80 chars total; unique+ against every existing \`[plan-feature-…]\` slug (re-check before recording).+ - **Motivation** — which user need or GOALS.md priority this serves, 1–2+ sentences.+ - **Approach** — the design you have decided on: the behavior to build, the+ existing patterns in {appName} it follows, and the concrete files/components+ it would touch (describe them; do NOT write the code).+ - **\`Scope: small | medium | large\`** — an honest estimate for one session.+ - **Acceptance criteria** — checkboxes another agent can verify cold, without+ asking anyone anything.+ - **Non-goals** — what this feature deliberately does NOT cover, so the+ implementing agent doesn't expand scope.++5. **Redact before you publish.** The filed item is world-readable the moment it+ lands. Never paste a secret, credential, token, hostname, IP address, or+ absolute path containing a username into the title or body.++6. **Record exactly ONE plan item** using the "Record" mechanics under "Where+ to record the plan" above. If the feature hinges on a genuine product+ judgment the user owns (not a design detail you can decide), file it anyway+ as a **Maybe — needs human call** item with the \`**Decision needed:**\` line+ the tracker instructions describe — do not skip filing.++7. **Finalize** per the "Finalize" step under "Where to record the plan" above.+ No source edits, no branches, no PRs.++8. Your final assistant message must be a 2–3 sentence summary of: the feature+ you planned, where you filed it (item slug / issue number), and the one+ design call you made that a reviewer is most likely to question.`,+'plan-task': `[Plan Task: {appName}] Claim and ship next PLAN.md itemPick the next available unclaimed PLAN.md item by its \`[<slug>]\` ID, **create your own worktree at \`claim/<slug>\`**, implement, ship a PR, and clean up. Mirrors the \`/claim\` slash command — same in-flight scan, same branch naming, same no-local-merge cleanup. **YOU pick the item in Phase 1 — the scheduler does not reserve one for you.** Picking at execution time and immediately creating the \`claim/<slug>\` branch **narrows** the window for two concurrent runs to collide on the same slug — it does NOT eliminate it: two runs can still complete Phase 1 before either creates a branch, then race at \`git worktree add\`. That race is handled in Phase 2 — the loser re-picks the next item. (A dispatch-time pre-pick is strictly worse: it commits both runs to the same slug long before any branch exists.) Do NOT modify files in the source repo directly; ALL editing happens inside the worktree you create.diff --git a/server/services/taskPromptDefaults/versions.js b/server/services/taskPromptDefaults/versions.jsindex 38e28b7a11..7d9a13bddc 100644--- a/server/services/taskPromptDefaults/versions.js+++ b/server/services/taskPromptDefaults/versions.js@@ -23,6 +23,7 @@ export const PROMPT_VERSIONS = {'branch-reconcile': 3, // v3: SUPERSEDED is a first-class outcome — a branch whose problem the default branch already solved a different way is reported and left untouched, never merged (merging it undoes shipped work). A resolvable conflict is explicitly NOT evidence the work is still wanted, and every branch is rebased + test-verified before it reaches a PR. v2: a branch whose "Do:" line ends in a merge isn't finished until it IS merged — the sub-agent waits CI out in-session instead of handing back a green-but-open PR, and the old blanket "never merge unreviewed work" rule (which vetoed the per-branch merge instruction) is replaced by the explicit CI-green + MERGEABLE + review gate. v1: per-app coordinator that finishes in-flight LOCAL branches (open PR / resolve conflicts / drive review / auto-merge) after the deterministic merged-branch cleanup pass. Peer-safe (local refs only). Replaced the PortOS-only branchReconcileScheduler.'issue-reconcile': 4, // v4: follow-up recipes apply independent slashdo dispatch hints and contributor labels (`good first issue`/`help wanted`, Jira hyphenated equivalents) instead of only `plan`. v3: adds a JIRA arm — status-based zombies (a ticket left In Review with remaining scope + no live claim; JIRA has no `in-progress` label) detected via the PortOS JIRA API and healed through ticket transitions + `POST tickets`, routed in via the app's resolved workTracker ('jira') rather than the git host. v2: forge-aware — the scan + coordinator now cover GitLab (`glab` issues + MRs) as well as GitHub, resolved from the app's origin host; every heal command is shown as gh/glab and the injected header names the forge. v1: per-app coordinator that heals ZOMBIE issues (open + in-progress but their PR merged with no live claim) after the deterministic gh/git scan. Applies the partial-ship hybrid — close + file a scoped follow-up when the remainder is separable, else comment "done/remaining" + release the claim so the queue re-picks it.'refresh-local-llm-catalog': 3, // v3: catalog maintenance now preserves the primary-lane + cross-lane recommendation taxonomy and reserves featured treatment for a deliberate first choice. v2: PortOS-only task, so it names the fragment command directly: `npm run changelog:add -- changed "…"` instead of hand-appending to `.changelog/NEXT.md`. v1: research current local models, refresh LOCAL_LLM_CATALOG + EDITORIAL_FAMILY_RANK, PR (PortOS repo only)+ 'plan-feature': 1, // v1: net-new type — the planning-only sibling of feature-ideas. Brainstorms ONE feature via the same research pipeline (GOALS.md, changelog/git log, REJECTED.md, closed-unmerged PRs) but never implements: the deliverable is ONE decision-complete plan (motivation, decided approach, scope, acceptance criteria, non-goals) filed into the app's resolved work tracker via {trackerInstructions}, for claim-issue/plan-task to pick up later. Net-new (no PREVIOUS_DEFAULT_PROMPTS entry needed).// Basic self-improvement tasks — versioned so installs created before the// Jan→Feb 2026 genericization (which still have the app-name-hardcoded "PortOS"diff --git a/server/services/taskSchedule.js b/server/services/taskSchedule.jsindex 8524a5ebc7..7729ff6e38 100644--- a/server/services/taskSchedule.js+++ b/server/services/taskSchedule.js@@ -223,6 +223,14 @@ export const SELF_IMPROVEMENT_TASK_TYPES = [// PR. No-ops on any repo lacking that catalog file, so enabling it on a// non-PortOS app does nothing. See DEFAULT_TASK_PROMPTS['refresh-local-llm-catalog'].'refresh-local-llm-catalog',+ // The planning-only sibling of `feature-ideas`: runs the same brainstorm+ // research (GOALS.md, changelog/git log, REJECTED.md, closed-unmerged PRs)+ // but NEVER implements — its deliverable is ONE decision-complete feature+ // plan filed into the app's resolved work tracker via {trackerInstructions}+ // (PLAN.md checklist item / GitHub / GitLab issue / JIRA ticket), which the+ // claim flows pick up later. Always-filing tracker-filing type+ // (TRACKER_FILING_PRESETS['plan-feature']), like reference-watch/repo-study.+ 'plan-feature',// layered-intelligence is a PROGRAMMATIC-I/O task: it spawns a NORMAL reasoning// agent (visible in the CoS queue + Active Agents, TUI-attachable) with two// deterministic hooks around it — buildTaskInput gathers the app's goals +@@ -473,6 +481,13 @@ export const DEFAULT_TASK_INTERVALS = {// a PR when the catalog is actually stale, so most runs are no-ops. Off by// default; the user enables it on the PortOS app.'refresh-local-llm-catalog': { type: INTERVAL_TYPES.WEEKLY, enabled: false, providerId: null, model: null, prompt: null, taskMetadata: { useWorktree: true, openPR: true, simplify: true } },+ // plan-feature files a plan, not code — tracker-filing posture mirrors+ // reference-watch: writable (the PLAN.md path commits checklist items), no+ // managed worktree, no PR. Weekly (not daily like feature-ideas) so an+ // enabled run doesn't flood the tracker with plans — one filed plan per run.+ // runAfter do-replan for the same grounding feature-ideas has: proposals are+ // checked against a fresh PLAN.md that already accounts for in-flight work.+ 'plan-feature': { type: INTERVAL_TYPES.WEEKLY, enabled: false, providerId: null, model: null, prompt: null, runAfter: ['do-replan'], taskMetadata: { useWorktree: false, openPR: false, readOnly: false } },// layered-intelligence is a programmatic-I/O task (agent-backed, hooked). Daily// by default; per-app scheduling (enabled/interval/provider/model) is set in the// Intelligence tab and stored on the app's taskTypeOverrides['layered-intelligence'].@@ -2321,6 +2336,7 @@ export const TASK_TYPE_DESCRIPTIONS = {'simplify': 'Dead-code/duplication audit — file issues (default) or implement removals','stash-cleanup': 'Triage git stash list — drop entries superseded by or stale relative to main, leave real unlanded work in place','refresh-local-llm-catalog': "Refresh PortOS's bundled suggested local-model catalog + editorial ranking (PortOS repo only)",+ 'plan-feature': "Brainstorm one feature and file its decision-complete plan to the app's work tracker (no code)",'layered-intelligence': "Read this app's goals + telemetry, ask a reasoning model for one improvement, and file one deduplicated tracker issue — no code, no agent"};diff --git a/server/services/taskSchedule.test.js b/server/services/taskSchedule.test.jsindex 11de57244a..22cf2ea14d 100644--- a/server/services/taskSchedule.test.js+++ b/server/services/taskSchedule.test.js@@ -1357,6 +1357,53 @@ describe('taskSchedule', () => {})})+ describe('plan-feature defaults', () => {+ it('is registered as a self-improvement task type with a description', () => {+ expect(SELF_IMPROVEMENT_TASK_TYPES).toContain('plan-feature')+ expect(TASK_TYPE_DESCRIPTIONS['plan-feature']).toBeTruthy()+ })++ it('defaults to weekly + disabled, grounded on do-replan, with no worktree/PR', () => {+ const cfg = DEFAULT_TASK_INTERVALS['plan-feature']+ expect(cfg.type).toBe(INTERVAL_TYPES.WEEKLY)+ // Off by default — enabling it is the user's consent to scheduled LLM runs.+ expect(cfg.enabled).toBe(false)+ // Same grounding as feature-ideas: proposals checked against a fresh PLAN.md.+ expect(cfg.runAfter).toEqual(['do-replan'])+ expect(cfg.taskMetadata.useWorktree).toBe(false)+ expect(cfg.taskMetadata.openPR).toBe(false)+ // Writable: the PLAN.md tracker path commits checklist items.+ expect(cfg.taskMetadata.readOnly).toBe(false)+ // Filing posture comes from TRACKER_FILING_PRESETS membership at dispatch,+ // not a static lock.+ expect(MANAGED_AGENT_OPTIONS['plan-feature']).toBeUndefined()+ })++ it('always files its plan via the tracker-filing machinery', async () => {+ const { resolveTrackerFilingBlock } = await import('../lib/workTracker.js')+ const app = { repoPath: '/tmp/example-repo', workTracker: 'github' }+ const block = await resolveTrackerFilingBlock(app, 'plan-feature')+ expect(block.workTracker).toBe('github')+ expect(block.trackerInstructions).toContain('[plan-feature-…]')+ })++ it('ships a prompt that plans without implementing', async () => {+ const prompt = await getTaskPrompt('plan-feature')+ expect(prompt).toContain('{appName}')+ expect(prompt).toContain('{repoPath}')+ // The tracker block is injected at dispatch, so the token must survive here.+ expect(prompt).toContain('{trackerInstructions}')+ // Same research pipeline as feature-ideas' brainstorm phase.+ expect(prompt).toContain('GOALS.md')+ expect(prompt).toContain('REJECTED.md')+ expect(prompt).toContain('closed-unmerged')+ // Never implements — the plan IS the deliverable.+ expect(prompt).toContain('no branches, no PRs')+ expect(prompt).toContain('Acceptance criteria')+ expect(prompt).toContain('Non-goals')+ })+ })+describe('audit file-issues types', () => {it('registers data-safety and simplify as disabled weekly file-issues audits', () => {for (const taskType of ['data-safety', 'simplify']) {diff --git a/server/services/workflow.js b/server/services/workflow.jsindex b531d53d9f..acd43d6d03 100644--- a/server/services/workflow.js+++ b/server/services/workflow.js@@ -54,8 +54,8 @@ export const WORKFLOW_STAGES = [{id: 'plan',label: 'Plan',- description: 'Audit PLAN.md against what actually shipped and surface gaps. Runs only after review/cleanup so the plan reflects merged reality.',- taskTypes: ['do-replan'],+ description: 'Audit PLAN.md against what actually shipped, surface gaps, and plan new features into the work tracker for the build stage to claim.',+ taskTypes: ['do-replan', 'plan-feature'],jobIds: []},{