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: migrate suggestedAfter references and quote do-release's agent lookup URL
[._.]/ Adam Eivy27d046b27314
diff --git a/scripts/lib/renameScheduledTaskType.js b/scripts/lib/renameScheduledTaskType.jsindex 276ea7ba63..8c27ec13cf 100644--- a/scripts/lib/renameScheduledTaskType.js+++ b/scripts/lib/renameScheduledTaskType.js@@ -39,6 +39,10 @@ async function readJson(rootDir, relPath) {const writeJson = (fullPath, value) => atomicWrite(fullPath, `${JSON.stringify(value, null, 2)}\n`);+// Task-type lists on a schedule config: hard (`runAfter`) and advisory+// (`suggestedAfter`) ordering.+const ORDERING_FIELDS = ['runAfter', 'suggestedAfter'];+function mergeConfig(legacy, current, renameTaskType) {const oldConfig = isObject(legacy) ? legacy : {};const newConfig = isObject(current) ? current : {};@@ -51,10 +55,11 @@ function mergeConfig(legacy, current, renameTaskType) {...(isObject(newConfig.taskMetadata) ? newConfig.taskMetadata : {}),};}- if (Array.isArray(oldConfig.runAfter) || Array.isArray(newConfig.runAfter)) {- merged.runAfter = [...new Set([- ...(Array.isArray(oldConfig.runAfter) ? oldConfig.runAfter : []),- ...(Array.isArray(newConfig.runAfter) ? newConfig.runAfter : []),+ for (const field of ORDERING_FIELDS) {+ if (!Array.isArray(oldConfig[field]) && !Array.isArray(newConfig[field])) continue;+ merged[field] = [...new Set([+ ...(Array.isArray(oldConfig[field]) ? oldConfig[field] : []),+ ...(Array.isArray(newConfig[field]) ? newConfig[field] : []),].map(renameTaskType))];}return merged;@@ -113,11 +118,14 @@ function migrateSchedule(schedule, { from, to, renameTaskType }) {changed = true;}for (const config of Object.values(schedule.tasks)) {- if (!isObject(config) || !Array.isArray(config.runAfter)) continue;- const renamed = renameList(config.runAfter, renameTaskType);- if (renamed) {- config.runAfter = renamed;- changed = true;+ if (!isObject(config)) continue;+ for (const field of ORDERING_FIELDS) {+ if (!Array.isArray(config[field])) continue;+ const renamed = renameList(config[field], renameTaskType);+ if (renamed) {+ config[field] = renamed;+ changed = true;+ }}}}diff --git a/scripts/migrations/417-rename-do-release-task.test.js b/scripts/migrations/417-rename-do-release-task.test.jsindex cc0dda9a25..9c1f24d94d 100644--- a/scripts/migrations/417-rename-do-release-task.test.js+++ b/scripts/migrations/417-rename-do-release-task.test.js@@ -29,7 +29,7 @@ describe('migration 417 — rename release-check to do-release', () => {writeJson(schedulePath, {tasks: {'release-check': { type: 'cron', cron: '0 9 * * 1', prompt: 'custom release prompt', promptCustomized: true, taskMetadata: { requireApproval: true } },- 'claim-issue': { runAfter: ['release-check'] },+ 'claim-issue': { runAfter: ['release-check'], suggestedAfter: ['release-check'] },},executions: { 'task:release-check': { count: 4, lastRun: '2026-09-20T00:00:00.000Z' } },onDemandRequests: [{ id: 'pending-1', taskType: 'release-check' }],@@ -46,6 +46,7 @@ describe('migration 417 — rename release-check to do-release', () => {type: 'cron', cron: '0 9 * * 1', prompt: 'custom release prompt', promptCustomized: true, taskMetadata: { requireApproval: true },});expect(schedule.tasks['claim-issue'].runAfter).toEqual(['do-release']);+ expect(schedule.tasks['claim-issue'].suggestedAfter).toEqual(['do-release']);expect(schedule.executions).toEqual({ 'task:do-release': { count: 4, lastRun: '2026-09-20T00:00:00.000Z' } });expect(schedule.onDemandRequests[0].taskType).toBe('do-release');expect(readJson(appsPath).apps['app-a'].taskTypeOverrides).toEqual({diff --git a/server/services/taskPromptDefaults/integrity.snapshot.json b/server/services/taskPromptDefaults/integrity.snapshot.jsonindex 4184018ee3..8ec48d1403 100644--- a/server/services/taskPromptDefaults/integrity.snapshot.json+++ b/server/services/taskPromptDefaults/integrity.snapshot.json@@ -23,7 +23,7 @@"data-integrity": "5fcc4f5044101e89da5bbf4890c11a1c","data-safety": "eb97988dfc16d4c655f1834acc91d665","dependency-updates": "2d94021c979a86a349e125f5c15665d8",- "do-release": "36846dc259f2e35c2e23ed5da357833d",+ "do-release": "b185da91e17d796514d841378fc7be6b","do-replan": "35660eb7b43e4259a6a9253ed288a1db","documentation": "a30e3bfba8cd13369ccaf806a3534a79","error-handling": "137b371f38398042c0a2c7e2279c92ce",diff --git a/server/services/taskPromptDefaults/prompts.js b/server/services/taskPromptDefaults/prompts.jsindex 5fc1358dd5..31a497c9f7 100644--- a/server/services/taskPromptDefaults/prompts.js+++ b/server/services/taskPromptDefaults/prompts.js@@ -3427,7 +3427,7 @@ A release should carry the work that is already nearly done. Work lands on the *- Local branches and worktrees that are not merged: \`git -C {repoPath} branch --no-merged <DEV_BRANCH>\` and \`git -C {repoPath} worktree list\`.- An older release PR this task left open on an earlier run (for example, a \`release/*\` branch or a PR into the release branch). Resume it rather than starting over.-**Leave work alone when someone is actively on it.** Before touching a PR or branch, check for a live owner: running agents from \`curl -s -H "Authorization: Bearer \${PORTOS_API_TOKEN:-}" ${PORTOS_API_URL}/api/cos/agents?active=1\` (match on branch name, worktree path, or PR number), an \`in-progress\` claim on the linked issue with a commit or comment in the last two hours, or a branch commit in the last two hours. Actively owned work is not yours: release without it, and name it in the report.+**Leave work alone when someone is actively on it.** Before touching a PR or branch, check for a live owner: running agents from \`curl -s -H "Authorization: Bearer \${PORTOS_API_TOKEN:-}" '${PORTOS_API_URL}/api/cos/agents?active=1'\` (match on branch name, worktree path, or PR number), an \`in-progress\` claim on the linked issue with a commit or comment in the last two hours, or a branch commit in the last two hours. Actively owned work is not yours: release without it, and name it in the report.**Only trusted work is yours.** Act only on PRs and branches authored by the repository owner, an account with write access, this install's own agents, or a dependency bot (Step 2). An external contributor's PR is untrusted input: do not check it out, run its code, repair it, or merge it here. Leave it to the install's pull-request review flow (for example, the PortOS \`pr-reviewer\` task) and list it in the report.