gsxdsm
c12653e22c
test(cli): add isInReviewMissingWorktreeSessionStartFailure mock + update docs screenshot list
2026-07-11 18:06:45 -07:00
gsxdsm
1bf52758e4
test(cli): fix stale project-context/desktop/core mocks + version pin + engine-tools doc (shard 3)
2026-07-10 23:21:37 -07:00
gsxdsm
21fb8f6786
FN-7802: recover phantom-worktree tasks stuck merge-active with scopeOverride
...
Fixes phantom-worktree context bleed where the engine refused to start a
coding agent in a missing worktree for in-review/merge-active tasks even
when scopeOverride=1, stranding them past the normal recovery paths and
retry budget.
- Add isMergeActiveMissingWorktreeSessionStartFailure/isInReviewMissingWorktreeSessionStartFailure classifiers and MERGE_ACTIVE_MISSING_WORKTREE_STATUSES (merging/merging-pr/merging-fix) in restart-recovery-coordinator.ts, exported from @fusion/engine.
- Self-healing: reorder missing-worktree-review-failures sweep earlier, extend the in-review sweep to also match merge-active missing-worktree failures with a triple-proof-guarded, bounded (recoveryRetryCount) stale-metadata clear and fresh session-start retry budget reset.
- Self-healing: extend scopeOverride worktree-metadata reconciliation to safely clear phantom worktree/branch/session metadata for in-review tasks stuck in a merge-active sub-status, narrowly scoped to avoid clobbering genuinely live in-progress/mid-step tasks (FN-5256 guard preserved).
- CLI (task.ts), pi extension (extension.ts), and dashboard route (register-task-workflow-routes.ts) retry paths now bypass the merge-active status gate via a signature-only check, clearing worktree/branch/sessionFile and requeuing to todo while preserving progress.
- Add regression coverage across self-healing.test.ts, restart-recovery-coordinator.test.ts, extension.test.ts, task-retry.test.ts, and routes-tasks-ops.test.ts; update mockCoreEngine.ts test scaffolding.
- Update docs/architecture.md, docs/self-healing-backward-move-audit.md, docs/task-management.md, and AGENTS.md to describe the new merge-active missing-worktree recovery behavior.
- Add changeset (patch) for @runfusion/fusion.
Files changed:
.changeset/fn-7802-phantom-worktree-merge-active-recovery.md | 7 +
AGENTS.md | 1 +
docs/architecture.md | 4 +-
docs/self-healing-backward-move-audit.md | 5 +-
docs/task-management.md | 2 +-
packages/cli/src/__tests__/extension.test.ts | 64 +++++
packages/cli/src/__tests__/task-retry.test.ts | 49 ++++
packages/cli/src/commands/task.ts | 28 +-
packages/cli/src/extension.ts | 26 +-
packages/dashboard/src/__tests__/routes-tasks-ops.test.ts | 52 ++++
packages/dashboard/src/routes/register-task-workflow-routes.ts | 25 +-
packages/dashboard/src/test/mockCoreEngine.ts | 11 +
packages/engine/src/__tests__/restart-recovery-coordinator.test.ts | 20 ++
packages/engine/src/__tests__/self-healing.test.ts | 297 +++++++++++++++++++++
packages/engine/src/index.ts | 13 +
packages/engine/src/restart-recovery-coordinator.ts | 19 +-
packages/engine/src/self-healing.ts | 157 +++++++++--
17 files changed, 744 insertions(+), 36 deletions(-)
Fusion-Task-Id: FN-7802
Fusion-Task-Lineage: 5897105b-6b5c-49d5-a8e8-519902182861
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-10 22:25:21 -07:00
gsxdsm
8f7089ecc9
fix(FN-7779): rebuild changed plugins on pnpm dev + warn on stale plugin dist
...
The Grok stale-dist bug was possible because the dev/build path never
refreshed plugin dist:
- The `client` prebuild (default `pnpm dev dashboard`) rebuilt only
@fusion/core + @fusion/engine + @fusion/dashboard, never plugins.
- The FN-6638 stale-dist startup warning only scanned packages/, never
plugins/, so a source-ahead plugin dist ran phantom-old with no warning.
Changes:
- build-workspace.mjs: add `--plugins-only` to plan/build just the plugins
that changed, reusing the existing content-hash skip cache (cheap no-op when
unchanged).
- scripts/dev-prebuild-client.mjs: new orchestrator — fast core/engine/
dashboard build, then incremental changed-plugin rebuild. The `client`
prebuild now runs this single cross-platform command.
- dist-freshness.mjs: scan plugin roots (plugins/, plugins/examples/) so a
stale plugin dist is warned like a stale package dist; the warning names the
plugin dir.
Verified: --plugins-only plans only plugins, skips unchanged on the second
run, and re-plans exactly the one plugin whose source changed. All script and
CLI lib tests pass.
Fusion-Task-Id: FN-7779
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-07-10 13:26:23 -07:00
gsxdsm
626e00288c
FN-7720: add operator review-lane bypass for stranded pre-merge review failures
...
Add a policy-gated review-lane bypass primitive so operators can unstick cards stranded by a failed pre-merge review step (e.g. the no-feedback review-engine defect), without exposing it to agent-driven lanes.
- Add `store.bypassFailedPreMergeReviewStep(id, { reason, actor })` in @fusion/core plus `getLatestFailedPreMergeReviewStep` in task-merge.ts, and new `bypassedBy`/`bypassedAt`/`bypassReason`/`bypassedFromStatus`/`bypassedFromVerdict` fields on `WorkflowStepResult`
- Add operator-only `fn_task_bypass_review` CLI/pi-extension tool; explicitly withheld from executor/reviewer/triage agent tool lists
- Add `POST /tasks/:id/bypass-review` dashboard API route and wire it through `register-task-workflow-routes.ts` and legacy API compatibility layer
- Add dashboard UI affordance (context menu action + task detail modal + right-dock controller wiring) to trigger the bypass with a reason
- Add i18n strings for the bypass action/labels across en/es/fr/ko/zh-CN/zh-TW locales
- Update `gating-classifications.ts` to recognize the bypassed state
- Add unit tests: `store-bypass-review.test.ts`, `task-merge-bypass.test.ts`, extension test coverage, and `useTasks` hook test coverage
- Update docs (`docs/workflow-steps.md`, `docs/dashboard-guide.md`, AGENTS.md, fusion skill references) to describe the new bypass tool/route
- Add changeset `.changeset/fn-7720-review-lane-bypass-primitive.md` (minor)
Files changed:
$(git diff --cached --stat)
Fusion-Task-Id: FN-7720
Fusion-Task-Lineage: 590b020a-ae02-4b51-8189-df8f54bf3044
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-09 19:58:04 -07:00
gsxdsm
dd9fa2d3cb
FN-7661: expose removeLineageReferences on fn_task_archive/fn_task_delete
...
Fixes fn_task_archive and fn_task_delete rejecting tasks still referenced as a lineage parent, with no tool-exposed way to clear that reference.
- Add optional removeLineageReferences boolean param to fn_task_archive and fn_task_delete tool schemas, forwarded to store.archiveTask/store.deleteTask
- Update tool descriptions and prompt guidelines to advertise the recovery path (removeLineageReferences:true) when a lineage-parent block occurs
- Add task-lineage-unlink.test.ts covering the new parameter behavior
- Document the change in docs/storage.md
- Add changeset (@runfusion/fusion minor, category: fix)
Files changed:
.changeset/fn-7661-lineage-unlink-tools.md | 7 +
docs/storage.md | 1 +
packages/cli/src/__tests__/task-lineage-unlink.test.ts | 199 +++++++++++++++++++++
packages/cli/src/extension.ts | 28 ++-
4 files changed, 232 insertions(+), 3 deletions(-)
Fusion-Task-Id: FN-7661
Fusion-Task-Lineage: 414c046c-43df-4995-85a5-ff00b345de50
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-08 00:33:02 -07:00
gsxdsm
4e8c621e9c
FN-7641: fix cards stranded after out-of-band/workspace merges by allowing proven-merge rehome
...
Fixes a state-machine bug family where cards got stranded after out-of-band or workspace merges landed: store.moveTask now allows a proven-merge recoveryRehome to cross legacy columns (e.g. todo→done), and nodeId='end' finalize no longer silently no-ops — it finalizes on durable merge proof or returns an explicit error, consistently across the dashboard route, the CLI task-update tool, and store.updateTask.
- packages/core/src/store.ts: allow proven-merge recoveryRehome moves across legacy columns (e.g. todo→done) instead of rejecting them
- packages/core/src/node-override-guard.ts: nodeId='end' finalize now checks for durable merge proof and returns an explicit error instead of silently no-op'ing
- packages/dashboard/src/routes/register-task-workflow-routes.ts: dashboard workflow route surfaces the new explicit finalize error/behavior
- packages/cli/src/extension.ts: CLI task-update tool surfaces the same explicit finalize error/behavior
- docs/task-management.md: documented the updated finalize/rehome behavior
- Added regression tests across core (node-override-guard, store-movement, task-node-override), dashboard (register-task-workflow-routes.nodeid-finalize), engine (merger-merge-lifecycle), and CLI (extension) covering the stranded-card invariant
- Added changeset for @runfusion/fusion (patch)
Files changed:
.changeset/fn-7641-stranded-cards-after-merge.md | 7 ++
docs/task-management.md | 2 +
packages/cli/src/__tests__/extension.test.ts | 59 ++++++++++++++
packages/cli/src/extension.ts | 10 +++
.../core/src/__tests__/node-override-guard.test.ts | 93 +++++++++++++++++++++
packages/core/src/__tests__/store-movement.test.ts | 94 ++++++++++++++++++++++
.../core/src/__tests__/task-node-override.test.ts | 73 +++++++++++++++++
packages/core/src/node-override-guard.ts | 69 +++++++++++++++-
packages/core/src/store.ts | 69 +++++++++++++++-
...er-task-workflow-routes.nodeid-finalize.test.ts | 90 +++++++++++++++++++++
.../src/routes/register-task-workflow-routes.ts | 10 +++
.../src/__tests__/merger-merge-lifecycle.test.ts | 58 +++++++++++++
12 files changed, 631 insertions(+), 3 deletions(-)
Fusion-Task-Id: FN-7641
Fusion-Task-Lineage: 48ea7851-ee68-48f1-92f9-302d0da5acff
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-07 22:06:20 -07:00
gsxdsm
ca8447304f
FN-7619: guard fn_task_attach against worktree boundary bypass
...
Add a path-containment check to fn_task_attach so it can no longer read files outside the task's worktree via traversal or absolute paths.
- Resolve the requested path and confine it to ctx.cwd (the task worktree) before any readFile call, rejecting "../" traversal, absolute paths, and other boundary-escaping inputs
- Add regression tests in extension.test.ts covering traversal/absolute-path attack vectors
- Add changeset (patch, category: security) documenting the fix
Files changed:
.changeset/fn-7619-attach-boundary.md | 7 ++
packages/cli/src/__tests__/extension.test.ts | 133 ++++++++++++++++++++++++++-
packages/cli/src/extension.ts | 23 ++++-
3 files changed, 161 insertions(+), 2 deletions(-)
Fusion-Task-Id: FN-7619
Fusion-Task-Lineage: d35d9218-d678-4989-945d-6c1e1a322c5c
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-06 19:03:07 -07:00
gsxdsm
203f879c8f
FN-7611: respect workflow intake column on task creation
...
Task creation surfaces stopped hardcoding column:"triage", so new tasks now land in the selected-or-default workflow's resolved intake column instead of always jumping to Planning/triage.
- Removed hardcoded column:"triage" override in engine's createTaskCreateTool (fn_task_create), letting TaskStore.createTask resolve the landing column from the workflow's intake-trait column.
- Removed the equivalent hardcoded override in the pi extension's fn_task_create, and updated its response text to echo the actual landing column instead of a fixed "Column: triage" string.
- Fixed signal-route, GitHub-import, and planning-subtask-route task creation to stop forcing column when no workflowId is given (or, for planning subtask routes, even when one is provided).
- Custom workflows with a non-triage intake column (e.g. Inbox) now correctly capture new cards inert until released, while the default builtin:coding workflow still resolves to "triage" byte-identically.
- Added regression coverage (agent-tools-intake-column.test.ts, extension-workflow-tools.test.ts) and a patch changeset documenting the fix.
Files changed:
.changeset/fn-7611-intake-column.md | 7 ++
.../src/__tests__/extension-workflow-tools.test.ts | 70 +++++++++++
packages/cli/src/extension.ts | 10 +-
.../src/__tests__/register-signal-routes.test.ts | 8 +-
.../dashboard/src/__tests__/routes-github.test.ts | 2 -
.../dashboard/src/routes/register-git-github.ts | 16 ++-
.../src/routes/register-planning-subtask-routes.ts | 24 +++-
.../dashboard/src/routes/register-signal-routes.ts | 8 +-
.../__tests__/agent-tools-intake-column.test.ts | 138 +++++++++++++++++++++
packages/engine/src/__tests__/agent-tools.test.ts | 1 -
packages/engine/src/agent-tools.ts | 21 +++-
11 files changed, 288 insertions(+), 17 deletions(-)
Fusion-Task-Id: FN-7611
Fusion-Task-Lineage: daf7f755-b1c7-4859-b74f-f15593d5e79e
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-06 19:03:07 -07:00
gsxdsm
71dfd3aeca
FN-7568: rename CLI release binary assets to fn-cli-<platform>
...
Renames the downloadable GitHub Release CLI binaries so they don't collide with other well-known fn-named tools on a user's PATH; the local dev binary name is unchanged.
- Update binaryNameForTarget in packages/cli/build.ts to emit fn-cli-<suffix> instead of fn-<suffix> (local dev binary stays fn/fn.exe)
- Update release.yml and test-release.yml build matrices to use fn-cli-linux-x64, fn-cli-linux-arm64, fn-cli-darwin-arm64, fn-cli-windows-x64.exe
- Update build-exe-cross, ci-workflow, and package-config tests to assert the new fn-cli-<platform> asset names
- Add changeset documenting the release-asset rename
Files changed:
.changeset/fn-7568-fn-cli-release-asset.md | 7 +++++++
.github/workflows/release.yml | 8 ++++----
.github/workflows/test-release.yml | 8 ++++----
packages/cli/build.ts | 10 ++++++++--
packages/cli/src/__tests__/build-exe-cross.test.ts | 14 +++++++-------
packages/cli/src/__tests__/ci-workflow.test.ts | 8 ++++----
packages/cli/src/__tests__/package-config.test.ts | 10 +++++-----
7 files changed, 39 insertions(+), 26 deletions(-)
Fusion-Task-Id: FN-7568
Fusion-Task-Lineage: 1c04d763-5e2f-43e3-84b7-df8dcff8467f
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-05 11:31:45 -07:00
gsxdsm
b545083249
FN-7530: isolate flaky dist-barrel extension test
...
Restore the stable extension suite by quarantining only the dist-barrel recompilation case.
- Move the built @fusion/core dist-barrel extension test into its own file.
- Re-admit extension.test.ts while keeping the isolated dist-barrel file quarantined.
- Update the quarantine ledger and velocity baseline to reflect the narrowed quarantine.
Files changed:
docs/test-velocity-baseline.md | 10 +-
.../src/__tests__/extension-dist-barrel.test.ts | 230 +++++++++++++++++++++
packages/cli/src/__tests__/extension.test.ts | 103 +--------
packages/cli/vitest.config.ts | 5 +-
scripts/lib/test-quarantine.json | 4 +-
5 files changed, 247 insertions(+), 105 deletions(-)
Fusion-Task-Id: FN-7530
Fusion-Task-Lineage: 7b07540f-689b-4133-b590-a39427095397
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-04 14:04:29 -07:00
gsxdsm
1a5f7e3b52
fix: add missing vitest aliases and mock export for CI test failures
...
Three root causes behind CI run 28695362549 failures:
1. droid-cli: 8 tests fail with 'Failed to resolve entry for
@fusion-plugin-examples/droid-runtime'. The droid-cli vitest config
had no source alias for the droid-runtime plugin, so Vite tried to
resolve non-existent dist/ exports.
2. CLI: multiple tests fail with 'Failed to resolve entry for
@fusion-plugin-examples/roadmap'. The CLI vitest config was missing
source aliases for the roadmap plugin (., /server, /roadmap-suggestions).
3. CLI: 73 bin.test.ts tests fail with 'No runTaskImportFromGitLab export
is defined on the ../commands/task.js mock'. The GitLab import command
was added to bin.ts and task.ts but the bin.test.ts mock was not
updated to include the new export.
2026-07-03 22:40:36 -07:00
gsxdsm
dfb6e5270d
FN-7443: add bundled Linear import plugin
...
Add a plugin-owned Linear importer that creates Fusion tasks from Linear issues.
- Add the fusion-plugin-linear-import package with settings, Linear GraphQL client, import routes, tools, and dashboard UI.
- Bundle and register the Linear import plugin in the CLI and dashboard plugin view registry.
- Document bundled plugin authoring details and cover duplicate detection, routes, tools, UI, and packaging with tests.
Files changed:
.changeset/fn-7443-linear-import-plugin.md | 7 +
docs/PLUGIN_AUTHORING.md | 7 +
docs/task-management.md | 2 +
packages/cli/src/__tests__/bundle-output.test.ts | 22 ++
.../__tests__/bundled-plugin-install.test.ts | 29 +++
packages/cli/src/plugins/bundled-plugin-install.ts | 1 +
.../cli/src/plugins/staged-bundled-plugin-ids.ts | 1 +
packages/cli/tsup.config.ts | 8 +
.../__tests__/registerBundledPluginViews.test.tsx | 9 +-
.../app/plugins/registerBundledPluginViews.ts | 18 ++
.../app/types/plugin-dashboard-views.d.ts | 9 +
.../src/__tests__/routes-plugin-registry.test.ts | 5 +
.../runtime-plugin-alias-regression.test.ts | 12 +
packages/dashboard/src/registry-manifest.json | 10 +
packages/dashboard/vite.config.ts | 8 +
packages/dashboard/vitest.config.ts | 8 +
plugins/fusion-plugin-linear-import/README.md | 75 ++++++
plugins/fusion-plugin-linear-import/manifest.json | 48 ++++
plugins/fusion-plugin-linear-import/package.json | 38 +++
.../scripts/copy-css.mjs | 11 +
.../src/LinearImportView.css | 167 +++++++++++++
.../src/LinearImportView.tsx | 263 +++++++++++++++++++++
.../src/__tests__/LinearImportView.test.tsx | 124 ++++++++++
.../src/__tests__/import-linear.test.ts | 78 ++++++
.../src/__tests__/linear-client.test.ts | 81 +++++++
.../src/__tests__/routes.test.ts | 90 +++++++
.../src/__tests__/tools.test.ts | 79 +++++++
.../src/dashboard-interop.d.ts | 13 +
.../src/dashboard-view.tsx | 10 +
.../src/import-linear.ts | 154 ++++++++++++
plugins/fusion-plugin-linear-import/src/index.ts | 45 ++++
.../src/linear-client.ts | 247 +++++++++++++++++++
plugins/fusion-plugin-linear-import/src/routes.ts | 149 ++++++++++++
.../fusion-plugin-linear-import/src/settings.ts | 68 ++++++
plugins/fusion-plugin-linear-import/src/tools.ts | 138 +++++++++++
plugins/fusion-plugin-linear-import/tsconfig.json | 14 ++
.../fusion-plugin-linear-import/vitest.config.ts | 40 ++++
pnpm-lock.yaml | 40 ++++
pnpm-workspace.yaml | 1 +
39 files changed, 2128 insertions(+), 1 deletion(-)
Fusion-Task-Id: FN-7443
Fusion-Task-Lineage: a016a9d4-84a4-4a0b-b9b6-b9a2886da49a
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-02 14:31:16 -07:00
gsxdsm
91fb53f3c7
FN-7440: add agent update tool
...
Add a Fusion extension tool for updating existing agent configuration in place.
- Register fn_agent_update with editable agent fields, validation, and non-ephemeral guards.
- Enforce org-scoped authorization for agent callers and privileged manager-clearing semantics for operators.
- Cover update success, hierarchy denial, cycle prevention, and runtime/instruction edits in extension tests.
- Document the new tool in agent and Fusion skill references and add a published package changeset.
Files changed:
.changeset/fn-7440-agent-update-tool.md | 7 +
docs/agents.md | 21 +-
package.json | 1 +
packages/cli/skill/fusion/SKILL.md | 2 +-
.../cli/skill/fusion/references/extension-tools.md | 21 ++
.../skill/fusion/references/fusion-capabilities.md | 1 +
.../src/__tests__/extension-agent-update.test.ts | 351 +++++++++++++++++++++
packages/cli/src/extension.ts | 230 ++++++++++++++
pnpm-lock.yaml | 1 +
9 files changed, 628 insertions(+), 7 deletions(-)
Fusion-Task-Id: FN-7440
Fusion-Task-Lineage: a6f4c928-5a63-4cf1-aa0b-4e38b536e965
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-02 13:16:07 -07:00
gsxdsm
c49a933fb0
FN-7428: add GitLab tracking coverage and reconciliation support
...
Add GitLab tracking persistence, analytics, and reconciliation coverage across core, dashboard, and CLI paths.
- Store GitLab tracking and closed-at metadata when importing issues and merge requests from CLI, extension tools, and dashboard routes.
- Add GitLab source-issue analytics, Command Center GitLab signal surfaces, CSV export fields, and a closed-at backfill route.
- Cover GitLab tracking storage, reconciliation, CLI imports, dashboard import UI, route behavior, and Command Center signals with focused tests.
Files changed:
.changeset/fn-7428-gitlab-import-tracking.md | 7 +
.../__tests__/extension-gitlab-tracking.test.ts | 140 ++++++++++++
.../__tests__/task-command-gitlab-import.test.ts | 18 +-
packages/cli/src/commands/task.ts | 1 +
packages/cli/src/extension.ts | 2 +-
.../src/__tests__/gitlab-issue-analytics.test.ts | 243 +++++++++++++++++++++
.../__tests__/gitlab-source-issue-storage.test.ts | 128 +++++++++++
.../store-gitlab-tracking-reconcile.test.ts | 125 +++++++++++
packages/core/src/gitlab-issue-analytics.ts | 227 +++++++++++++++++++
packages/core/src/index.ts | 8 +
packages/core/src/store.ts | 21 +-
.../__tests__/GitHubImportModal.test.tsx | 46 ++++
.../components/__tests__/gitlabTracking.test.tsx | 43 ++++
.../components/command-center/CommandCenter.tsx | 5 +
.../components/command-center/areas/GitlabArea.tsx | 126 +++++++++++
.../areas/__tests__/areas.gitlab-signals.test.tsx | 83 +++++++
.../gitlab-source-issue-reconciler.test.ts | 187 ++++++++++++++++
.../register-command-center-routes.test.ts | 52 +++++
.../__tests__/register-git-gitlab.backfill.test.ts | 116 ++++++++++
.../dashboard/src/__tests__/routes-gitlab.test.ts | 59 +++--
packages/dashboard/src/command-center-csv.ts | 21 ++
.../src/gitlab-source-issue-reconciler.ts | 104 +++++++++
packages/dashboard/src/gitlab.ts | 16 +-
.../src/routes/register-command-center-routes.ts | 25 +++
packages/dashboard/src/routes/register-gitlab.ts | 29 +++
25 files changed, 1800 insertions(+), 32 deletions(-)
Fusion-Task-Id: FN-7428
Fusion-Task-Lineage: 7b0ebb5c-c6e7-42a9-a339-b2dd1d4e263a
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-02 12:34:35 -07:00
gsxdsm
865dec235b
FN-7424: add GitLab task imports
...
Adds GitLab-backed task import flows across the CLI, extension, API, and dashboard.
- Add GitLab client normalization, provenance, duplicate detection, and import routes for project issues, group issues, and merge requests.
- Extend the dashboard import modal with a GitLab provider, resource tabs, previews, imported-state detection, and import actions.
- Add CLI and extension task import commands plus usage event/gating classifications and operator documentation.
- Cover GitLab fetch/import behavior with dashboard, CLI, and gating tests.
Files changed:
.changeset/fn-7424-gitlab-imports.md | 7 +
docs/cli-reference.md | 11 +-
docs/gitlab-parity-inventory.md | 10 +-
docs/task-management.md | 6 +-
packages/cli/skill/fusion/SKILL.md | 2 +-
.../cli/skill/fusion/references/extension-tools.md | 60 ++++
.../skill/fusion/references/fusion-capabilities.md | 6 +
packages/cli/src/__tests__/extension.test.ts | 6 +
.../__tests__/task-command-gitlab-import.test.ts | 97 ++++++
packages/cli/src/bin.ts | 25 +-
packages/cli/src/commands/task.ts | 58 ++++
packages/cli/src/extension.ts | 106 +++++++
packages/core/src/__tests__/usage-events.test.ts | 2 +
packages/core/src/types.ts | 7 +
packages/core/src/usage-events.ts | 3 +
packages/dashboard/app/api/legacy.ts | 52 ++++
.../dashboard/app/components/GitHubImportModal.css | 41 +++
.../dashboard/app/components/GitHubImportModal.tsx | 143 ++++++++-
.../__tests__/GitHubImportModal.test.tsx | 33 ++
packages/dashboard/src/__tests__/gitlab.test.ts | 56 ++++
.../dashboard/src/__tests__/routes-gitlab.test.ts | 99 ++++++
packages/dashboard/src/gitlab.ts | 334 +++++++++++++++++++++
packages/dashboard/src/index.ts | 15 +
packages/dashboard/src/routes.ts | 2 +
packages/dashboard/src/routes/register-gitlab.ts | 192 ++++++++++++
.../engine/src/__tests__/agent-action-gate.test.ts | 4 +
.../gating-classifications-provisioning.test.ts | 13 +-
.../src/__tests__/gating-classifications.test.ts | 6 +
packages/engine/src/gating-classifications.ts | 9 +
29 files changed, 1388 insertions(+), 17 deletions(-)
Fusion-Task-Id: FN-7424
Fusion-Task-Lineage: 8012425c-21d5-4b20-adb7-07d2e5aa1cef
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-02 11:38:34 -07:00
gsxdsm
855061db5f
fix: harden workflow graph cutover paths and migrate cutover-era tests
...
Production fixes:
- executor.ts: add safeLogEntry() wrapper so synchronous throws from
store.logEntry don't abort pause/abort/finalize control flow.
- workflow-authoritative-driver.ts: pass built-in auxiliary custom nodes
(task-summary nodes, bypassable optional-groups) through as success
instead of throwing.
Test migrations for graph-native runtime (cherry-picked from closed PR #1869 ):
- executor-prompt: two-party barrier for global-pause disposal test.
- executor-task-done-invariant: assert merge-node boundary moveTask.
- workflow-graph-merge-region-collapse: updated for merge-region node shapes.
- executor-worktree/worktree-liveness/implicit-task-done-budget: graph-aware.
- CLI extension tests: shared engine-workflow-authoring-mock helper.
- Dashboard/desktop/reliability tests: cutover-aware assertion updates.
2026-07-02 07:32:47 -07:00
gsxdsm
22261b683f
FN-7411: prevent task-bound self deletion
...
Prevent task-bound callers from soft-deleting the task they are currently executing.
- Add a TaskSelfDeleteError guard in TaskStore.deleteTask before mutation or audit emission.
- Pass the current task id through the fn_task_delete audit context so CLI tool calls inherit the store invariant.
- Cover self-delete rejection and cross-task deletion allowance in core and CLI tests.
- Add a patch changeset for the published CLI package.
Files changed:
.changeset/fn-7411-self-delete-guard.md | 7 +++
.../task-delete-allow-resurrection.test.ts | 48 ++++++++++++++++-
packages/cli/src/extension.ts | 2 +
.../src/__tests__/store-self-delete-guard.test.ts | 60 ++++++++++++++++++++++
packages/core/src/store.ts | 22 +++++++-
5 files changed, 136 insertions(+), 3 deletions(-)
Fusion-Task-Id: FN-7411
Fusion-Task-Lineage: 50028769-5396-4435-84fb-2ae182315e81
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-01 23:53:10 -07:00
Phil Larson
c46d11f0a3
test(cli): keep extension engine mocks current
2026-07-01 16:34:02 -07:00
gsxdsm
e85d25e383
FN-7395: fix packaged desktop launch assets
...
Fix installed desktop launches so they use packaged runtime assets without parsing caller workspaces.
- Resolve normal desktop launches from packaged CLI desktop assets, with explicit override and dev paths.
- Stage desktop runtime assets into the published CLI package and include them in npm files.
- Route desktop --no-auth into the embedded dashboard server and document installed/dev launch behavior.
- Cover invalid JSON caller directories, missing packaged assets, package contents, and CLI routing in tests.
Files changed:
.changeset/fn-7395-desktop-launcher.md | 7 ++
docs/cli-reference.md | 12 +-
packages/cli/package.json | 1 +
packages/cli/src/__tests__/bin.test.ts | 19 +++
packages/cli/src/__tests__/package-config.test.ts | 11 ++
packages/cli/src/bin.ts | 10 +-
.../cli/src/commands/__tests__/desktop.test.ts | 132 ++++++++++++++++++---
packages/cli/src/commands/desktop.ts | 85 ++++++++-----
packages/cli/tsup.config.ts | 60 ++++++++++
9 files changed, 285 insertions(+), 52 deletions(-)
Fusion-Task-Id: FN-7395
Fusion-Task-Lineage: e7a8d065-0d41-4fa3-9cea-1cfb5b466d16
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-01 15:39:34 -07:00
gsxdsm
37027632e0
FN-7378: upgrade pi SDK dependencies
...
Upgrade the bundled pi SDK packages and compatibility imports for the 0.80.3 release.
- Bump @earendil-works/pi-ai and @earendil-works/pi-coding-agent consumers to ^0.80.3.
- Update pi SDK import paths for the new compatibility and API export map layout.
- Refresh dependency contract tests and add a patch changeset for the published CLI package.
Files changed:
.changeset/fn-7378-pi-sdk-upgrade.md | 7 ++
packages/cli/package.json | 4 +-
packages/cli/src/__tests__/package-config.test.ts | 8 +-
packages/dashboard/package.json | 2 +-
packages/engine/package.json | 4 +-
.../custom-providers-openai-completions.test.ts | 8 +-
pnpm-lock.yaml | 108 ++++++++++-----------
7 files changed, 72 insertions(+), 69 deletions(-)
Fusion-Task-Id: FN-7378
Fusion-Task-Lineage: ed8847dc-2adf-4ede-aa75-045f2e2436a0
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-01 10:37:44 -07:00
gsxdsm
a9e2baa9f8
FN-7367: link imported GitHub issues to tracking
...
Imported GitHub issues can now adopt their source issue as the tracking issue without changing ordinary task defaults.
- Add the project-scoped githubLinkImportedIssuesToTracking setting with docs, Settings UI, and defaults.
- Honor the import-only setting across dashboard, CLI, and extension GitHub issue import paths.
- Cover saved settings and import tracking behavior with CLI, dashboard, and parity tests.
- Add a minor changeset for the published CLI package.
Files changed:
.changeset/fn-7367-github-import-tracking.md | 7 +++
docs/settings-reference.md | 3 +-
packages/cli/src/__tests__/extension.test.ts | 73 ++++++++++++++++++++++
.../task-command-github-import-tracking.test.ts | 16 +++++
packages/cli/src/commands/__tests__/task.test.ts | 28 +++++++++
packages/cli/src/commands/task.ts | 45 +++++++------
packages/cli/src/extension.ts | 45 +++++++------
.../core/src/__tests__/settings-parity.test.ts | 4 ++
packages/core/src/settings-schema.ts | 1 +
packages/core/src/types.ts | 6 ++
.../app/__tests__/settings-save-split.test.ts | 19 ++++++
.../dashboard/app/components/SettingsModal.tsx | 6 ++
.../__tests__/SettingsModal.general.test.tsx | 59 +++++++++++++++++
.../__tests__/SettingsModal.test-harness.tsx | 1 +
.../settings/sections/GeneralSection.tsx | 9 +++
.../dashboard/src/__tests__/routes-github.test.ts | 45 +++++++++++++
.../dashboard/src/routes/register-git-github.ts | 7 +++
17 files changed, 325 insertions(+), 49 deletions(-)
Fusion-Task-Id: FN-7367
Fusion-Task-Lineage: 43671cdf-7e0d-4b7a-9ba2-54c9a367dfec
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-07-01 09:50:57 -07:00
gsxdsm
94ddfe1064
FN-7274: document workflow tools in Fusion skill
...
Document the workflow-authoring tool surface in the packaged Fusion skill references.
- Add workflow tools to the generated Fusion skill category and capability tables.
- Teach the skill sync script to read workflow tool specs from extension and engine agent tool sources.
- Cover workflow tool documentation and cache inputs with sync tests.
- Add a changeset for the published CLI skill update.
Files changed:
.changeset/fn-7274-workflow-skill-tools.md | 7 +
packages/cli/skill/fusion/SKILL.md | 1 +
.../cli/skill/fusion/references/engine-tools.md | 4 +-
.../cli/skill/fusion/references/extension-tools.md | 83 +++++++++-
.../skill/fusion/references/fusion-capabilities.md | 8 +
packages/cli/src/__tests__/skill-sync.test.ts | 60 ++++++-
scripts/__tests__/skill-sync-cache.test.mjs | 5 +
scripts/sync-fusion-skill-tools.mjs | 172 ++++++++++++++++++---
8 files changed, 312 insertions(+), 28 deletions(-)
Fusion-Task-Id: FN-7274
Fusion-Task-Lineage: e1cd6bd8-aecc-49ca-96ed-a937a15a18a4
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-06-30 08:04:12 -07:00
gsxdsm
f01e5c9651
FN-7247: document current workflow behavior
...
Refresh workflow documentation to match the latest runtime, dashboard, and agent tool behavior.
- Add a current workflow behavior inventory covering built-ins, fail-closed runtime semantics, optional gates, settings, tools, routing, and create forwarding.
- Clarify dashboard All workflows aggregation, workflow badges, and workflow-aware task creation behavior.
- Expand editor, agent, CLI, and settings docs for governed workflow authoring, values, trait inspection, and selection boundaries.
- Add docs drift tests requiring workflow docs index coverage and current behavior markers.
Files changed:
docs/agents.md | 5 +-
docs/cli-reference.md | 11 ++-
docs/dashboard-guide.md | 10 ++-
docs/settings-reference.md | 5 ++
docs/workflow-editor.md | 15 +++-
docs/workflow-steps.md | 48 ++++++++---
.../cli/src/__tests__/docs-readme-index.test.ts | 4 +
.../src/__tests__/workflow-docs-current.test.ts | 95 ++++++++++++++++++++++
8 files changed, 172 insertions(+), 21 deletions(-)
Fusion-Task-Id: FN-7247
Fusion-Task-Lineage: 72bf0c89-80a3-440c-b6aa-1aea315279f5
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-06-29 19:46:23 -07:00
gsxdsm
42226edde1
FN-7245: expose workflow authoring tools to agents
...
Expose workflow authoring and selection tools through agent-visible extension surfaces.
- Register workflow list/get/create/update/delete/settings/select and trait-list tools in the published pi extension.
- Export shared workflow tool schemas/factories and include workflow settings in centralized authoring tool sets.
- Update action-gate classifications, permission examples, docs, tests, and the changeset for the new agent workflow surface.
Files changed:
.changeset/FN-7245-workflow-tools.md | 7 +
docs/agents.md | 4 +-
docs/cli-reference.md | 17 ++
docs/workflow-steps.md | 9 +-
.../src/__tests__/extension-workflow-tools.test.ts | 244 +++++++++++++++++++++
packages/cli/src/__tests__/extension.test.ts | 8 +
packages/cli/src/extension.ts | 142 ++++++++++++
packages/core/src/types.ts | 6 +-
.../dashboard/src/__tests__/chat-manager.test.ts | 9 +-
.../planning-document-tools-exposure.test.ts | 19 +-
.../engine/src/__tests__/agent-action-gate.test.ts | 8 +
.../agent-workflow-tools-exposure.test.ts | 30 ++-
.../src/__tests__/gating-classifications.test.ts | 13 +-
.../src/__tests__/permanent-agent-gating.test.ts | 4 +-
packages/engine/src/agent-tools.ts | 13 +-
packages/engine/src/gating-classifications.ts | 6 +-
packages/engine/src/index.ts | 7 +
17 files changed, 506 insertions(+), 40 deletions(-)
Fusion-Task-Id: FN-7245
Fusion-Task-Lineage: 82501602-7177-4ee8-a67b-32de35aa73de
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-06-29 16:35:51 -07:00
gsxdsm
bc38f0c842
FN-7209: require JDK 21 for Android CI builds
...
Align Android Gradle build environments with Capacitor's Java 21 source compatibility.
- Update mobile, release, and test-release workflows to provision Temurin JDK 21.
- Document Java 21 as the required Android Gradle build JDK.
- Add CI workflow coverage that checks Android build jobs satisfy @capacitor/android sourceCompatibility.
Files changed:
.github/workflows/mobile.yml | 6 +-
.github/workflows/release.yml | 6 +-
.github/workflows/test-release.yml | 6 +-
MOBILE.md | 4 +-
packages/cli/src/__tests__/ci-workflow.test.ts | 99 +++++++++++++++++++++++++-
5 files changed, 112 insertions(+), 9 deletions(-)
Fusion-Task-Id: FN-7209
Fusion-Task-Lineage: d9e50bee-d7f8-4e87-b33e-136ffffc93af
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-06-28 16:56:35 -07:00
gsxdsm
524c15c2fd
FN-7188: prevent agents from pausing failed tasks
...
Clarify agent heartbeat and tool guidance so failures surface through recovery paths instead of task pauses.
- Update heartbeat prompts to prohibit failure/blocker handling via fn_task_pause.
- Clarify fn_task_pause tool copy as explicit user-requested manual control only.
- Refresh generated Fusion skill docs and add regression coverage for the guidance.
- Add a patch changeset for the published CLI package.
Files changed:
.changeset/FN-7188-no-pause-on-failure.md | 7 +++++++
packages/cli/skill/fusion/references/best-practices.md | 6 +++---
packages/cli/skill/fusion/references/extension-tools.md | 2 +-
packages/cli/skill/fusion/references/fusion-capabilities.md | 2 +-
packages/cli/skill/fusion/workflows/task-management.md | 2 +-
packages/cli/src/__tests__/extension.test.ts | 8 ++++++++
packages/cli/src/extension.ts | 10 ++++++++--
.../engine/src/__tests__/heartbeat-session-prompt.test.ts | 10 ++++++++++
packages/engine/src/agent-heartbeat.ts | 12 ++++++++++--
9 files changed, 49 insertions(+), 10 deletions(-)
Fusion-Task-Id: FN-7188
Fusion-Task-Lineage: 29df6168-7920-49d5-9c11-804727033721
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-06-28 01:22:43 -07:00
gsxdsm
6f46fa17dd
FN-7138: show task column context in agent assignments
...
Agent Current Task output now includes linked task column context to distinguish active execution from parked or stale links.
- Add shared Current Task formatting for active, terminal, and unresolved task links.
- Show linked task columns in engine and CLI agent list/show surfaces.
- Cover parked, active, terminal, and missing task-link display cases with tests.
- Document the durable agent task-link invariant and release the CLI fix.
Files changed:
.changeset/fn-7138-agent-current-task-context.md | 7 ++++
docs/agents.md | 1 +
docs/architecture.md | 2 +-
packages/cli/src/__tests__/extension.test.ts | 44 ++++++++++++++++++++++
packages/cli/src/extension.ts | 35 +++++++++++++++--
packages/core/src/agent-store.ts | 30 +++++++++++++++
packages/core/src/index.ts | 2 +-
.../src/__tests__/agent-tools-delegation.test.ts | 44 +++++++++++++++++++++-
packages/engine/src/agent-tools.ts | 15 ++++++--
9 files changed, 169 insertions(+), 11 deletions(-)
Fusion-Task-Id: FN-7138
Fusion-Task-Lineage: 0ea97b4c-d4f8-4289-a5b6-e5c51b47b768
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-06-27 16:16:25 -07:00
gsxdsm
8b22dd2ffe
FN-7090: link imported GitHub issues as tracked tasks
...
Link GitHub issue imports to existing source issues when tracking defaults are enabled.
- Resolve project/global GitHub tracking defaults before CLI, extension, and dashboard issue imports.
- Mark imported issue tasks as tracking-enabled so the post-create hook adopts the source issue instead of creating duplicates.
- Cover tracked and untracked import behavior across CLI tools, task commands, and dashboard GitHub routes.
- Document the import tracking behavior and add a minor changeset for the published CLI.
Files changed:
.changeset/fn-7090-import-github-tracked.md | 7 ++
docs/cli-reference.md | 2 +
docs/settings-reference.md | 2 +-
.../__tests__/extension-github-tracking.test.ts | 63 +++++++++++
packages/cli/src/__tests__/extension.test.ts | 125 ++++++++++++++++++++-
.../task-command-github-import-tracking.test.ts | 119 ++++++++++++++++++++
packages/cli/src/commands/__tests__/task.test.ts | 64 ++++++++++-
packages/cli/src/commands/task.ts | 30 ++++-
packages/cli/src/extension.ts | 27 +++++
.../dashboard/src/__tests__/routes-github.test.ts | 74 ++++++++++++
.../dashboard/src/routes/register-git-github.ts | 21 +++-
11 files changed, 524 insertions(+), 10 deletions(-)
Fusion-Task-Id: FN-7090
Fusion-Task-Lineage: 1e5510c3-7a98-4ff2-a109-e465ff58b9c2
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai >
2026-06-27 09:28:29 -07:00
gsxdsm
42f46a12c1
FN-7060: sanitize bundled plugin manifests
...
Sanitize published CLI plugin manifests so off-workspace installs do not resolve private workspace packages.
- Add manifest sanitization for copied bundled plugins and vendored pi extensions during the CLI build.
- Cover built plugin and extension package.json files with a pack-shape regression test.
- Update plugin authoring docs and add a patch changeset for the published CLI fix.
Files changed:
.../fn-7060-fix-plugin-manifest-workspace-deps.md | 7 ++
docs/PLUGIN_AUTHORING.md | 8 ++-
.../cli/src/__tests__/plugin-pack-shape.test.ts | 55 +++++++++++++-
packages/cli/tsup.config.ts | 83 ++++++++++++++++++++--
4 files changed, 142 insertions(+), 11 deletions(-)
Fusion-Task-Id: FN-7060
Fusion-Task-Lineage: e38a4237-7197-4bc4-87bd-117dfd35a0f8
2026-06-26 10:18:04 -07:00
gsxdsm
3ee47dec86
merge: integrate origin/main into feature/workflow-steps (FN-7039)
...
Resolve conflicts from 56 upstream commits:
- db.ts: renumber my migrations around main's new migration 130 (columnDwellMs) —
enable-id normalization 130→131, drop-table 131→132, SCHEMA_VERSION→132.
- index.ts / routes.ts: take main's new MCP exports/imports; keep WORKFLOW_STEP_TEMPLATES
array removed (kept the WorkflowStepTemplate type).
- merger.ts: keep the legacy post-merge execution path removed (U7c) over main's version.
- ci-workflow.test.ts (from main): add port-4040/process-supervisor allowlist markers to
the gate-script assertions that reference the checker filenames (pre-existing self-match).
Gate green (engine-core 299, ci-shape 62); boot smoke PASS; migration tests + typecheck clean.
2026-06-26 08:50:22 -07:00
gsxdsm
7d13f880ba
FN-7059: pin merge gate composition
...
Add CI-shape coverage that guards the trusted merge gate composition.\n\n- Load root and engine package scripts plus the engine vitest config in the CI workflow test.\n- Assert test:gate includes the audited guard scripts, engine core suite, and CLI CI-shape suite.\n- Assert engine test:core continues targeting the engine-core vitest project.\n\nFiles changed:\n packages/cli/src/__tests__/ci-workflow.test.ts | 26 ++++++++++++++++++++++++++\n 1 file changed, 26 insertions(+)
Fusion-Task-Id: FN-7059
Fusion-Task-Lineage: 47af7fdd-a812-4d03-960a-a6300d86b59e
2026-06-26 06:47:27 -07:00
gsxdsm
4a4e389254
FN-7032: add signed Android release artifacts
...
Add secret-gated signed Android release packaging while preserving the unsigned fallback.
- Build signed Android release APK and AAB artifacts when keystore secrets are configured.
- Verify signed APKs, generate checksums for APK/AAB outputs, and include AABs in release aggregation.
- Document Android signing secrets, sideload verification, fallback artifacts, and Play upload scope.
- Cover the release and rehearsal workflow wiring with CLI and desktop workflow tests.
Files changed:
.github/workflows/release.yml | 94 ++++++++++++++++++----
.github/workflows/test-release.yml | 94 ++++++++++++++++++----
MOBILE.md | 18 ++++-
RELEASING.md | 34 ++++++--
packages/cli/src/__tests__/ci-workflow.test.ts | 24 ++++++
packages/desktop/README.md | 2 +-
.../desktop/src/__tests__/release-workflow.test.ts | 24 +++++-
7 files changed, 251 insertions(+), 39 deletions(-)
Fusion-Task-Id: FN-7032
Fusion-Task-Lineage: 0334c026-384e-4531-a2b2-f8a0b5bb7ff0
2026-06-25 20:20:33 -07:00
gsxdsm
dba65933e5
FN-7014: publish Android APK release artifacts
...
Adds Android APK generation to binary release and rehearsal workflows so GitHub releases ship mobile assets.
- Add Android build jobs that sync Capacitor, assemble the debug APK, and upload APK/checksum artifacts.
- Include Android artifacts in release and test-release collection dependencies and file matching.
- Document Android release outputs and extend workflow shape tests for the new asset path.
Files changed:
.github/workflows/release.yml | 86 +++++++++++++++++++++-
.github/workflows/test-release.yml | 85 ++++++++++++++++++++-
MOBILE.md | 2 +-
RELEASING.md | 10 ++-
packages/cli/src/__tests__/ci-workflow.test.ts | 6 +-
packages/desktop/README.md | 1 +
.../desktop/src/__tests__/release-workflow.test.ts | 24 +++++-
7 files changed, 201 insertions(+), 13 deletions(-)
Fusion-Task-Id: FN-7014
Fusion-Task-Lineage: 8ed94f64-399b-433f-add4-0294fc5722d1
2026-06-25 19:35:05 -07:00
gsxdsm
bc56ab287e
fix: align tests with recent source changes on main
...
Fix 6 failing tests caused by intentional source changes that landed
without updating dependent test assertions:
- Core test-project: taskPrefix default changed from "FN" to undefined
(commit 800f845e1 , derived from project name at runtime)
- Dashboard ScriptsModal.css: replace banned --text-primary with --text
- CLI package-config: update expected pi dep version ^0.79.1 -> ^0.79.9
- CLI skill-sync: document 4 new engine tools in engine-tools.md
- CLI version: update expected release:version script to include
run-ci-distill.mjs
- CLI bundled-plugin-freshness: rebuild stale dist directories
2026-06-25 00:13:29 -07:00
gsxdsm
c18e827b90
FN-6839: await CLI cached store shutdown
...
Rescue the retained CLI quarantine by making TaskStore shutdown deterministic before fixture cleanup.
- Await cached extension TaskStore closes and clear the cache before asynchronous shutdown drains.
- Update CLI fixtures to await direct and cached store closure, with a regression proving cached close is awaited.
- Remove rescued CLI quarantine entries/excludes and document the loaded-suite rescue with a patch changeset.
Files changed:
.changeset/fn-6839-close-cached-stores.md | 5 ++
CLAUDE.md | 1 +
docs/testing.md | 4 ++
.../extension-agent-set-instructions.test.ts | 2 +-
.../__tests__/extension-goal-tools-audit.test.ts | 2 +-
.../cli/src/__tests__/extension-goal-tools.test.ts | 2 +-
.../cli/src/__tests__/extension-insights.test.ts | 6 +--
.../__tests__/extension-mission-goal-tools.test.ts | 2 +-
.../cli/src/__tests__/extension-task-tools.test.ts | 16 ++++---
packages/cli/src/__tests__/extension.test.ts | 56 +++++++++++-----------
.../src/__tests__/research-extension-tools.test.ts | 4 +-
packages/cli/src/extension.ts | 16 +++----
packages/cli/vitest.config.ts | 6 +--
scripts/lib/test-quarantine.json | 15 ------
14 files changed, 68 insertions(+), 69 deletions(-)
Fusion-Task-Id: FN-6839
Fusion-Task-Lineage: ea0c7c77-bb59-4db4-931d-5e052a1043e5
2026-06-21 09:00:40 -07:00
gsxdsm
259cdfb531
FN-6734: stabilize CLI extension test cleanup
...
Stabilize the CLI extension regression lane by closing cached stores before temp fixture removal.
- Close extension store caches and manually created TaskStore/AgentStore handles before deleting per-test fixture roots.
- Add a regression guard for the cached TaskStore close-before-remove invariant.
- Reduce oversized task-list truncation fixtures while preserving bounded-output assertions.
- Document the CLI affected-lane rescue pattern for store leaks, fixture sizing, and runtime-dist mocking order.
Files changed:
docs/testing.md | 4 +
.../extension-agent-set-instructions.test.ts | 3 +-
.../__tests__/extension-goal-tools-audit.test.ts | 3 +-
.../cli/src/__tests__/extension-goal-tools.test.ts | 3 +-
.../cli/src/__tests__/extension-insights.test.ts | 3 +-
.../__tests__/extension-mission-goal-tools.test.ts | 3 +-
packages/cli/src/__tests__/extension.test.ts | 221 +++++++++++++--------
.../src/__tests__/research-extension-tools.test.ts | 40 +++-
8 files changed, 186 insertions(+), 94 deletions(-)
Fusion-Task-Id: FN-6734
Fusion-Task-Lineage: efe91c0f-f84c-471c-8067-65a244b2aec7
2026-06-19 16:47:33 -07:00
gsxdsm
70cce18c31
FN-6712: add managed agent instructions tool
...
Add a scoped extension tool for managers to update report instructions through AgentStore.
- Register fn_agent_set_instructions with validation, hierarchy authorization, and config-revision persistence.
- Cover direct, indirect, privileged, denied, missing-target, and field-clearing behaviors with CLI extension tests.
- Document the new agent-management tool in agent docs, Fusion skill references, and a published package changeset.
Files changed:
.changeset/fn-6712-agent-set-instructions-tool.md | 5 +
docs/agents.md | 12 ++
packages/cli/skill/fusion/SKILL.md | 2 +-
.../cli/skill/fusion/references/extension-tools.md | 10 +
.../skill/fusion/references/fusion-capabilities.md | 1 +
.../extension-agent-set-instructions.test.ts | 235 +++++++++++++++++++++
packages/cli/src/extension.ts | 94 +++++++++
7 files changed, 358 insertions(+), 1 deletion(-)
Fusion-Task-Id: FN-6712
Fusion-Task-Lineage: 1fac1ff0-283d-4911-8fbf-f15c5de6b902
2026-06-19 07:41:44 -07:00
gsxdsm
538bf42e32
fix(dev): rebuild core+engine+dashboard on dev/local startup + stale-dist check
...
pnpm dev/local dashboard prebuild now rebuilds @fusion/core and @fusion/engine alongside the dashboard UI (was client-only), and startup warns loudly when built dist/ is older than src/. Prevents the FN-6638 class where landed engine fixes silently never run because the process loads stale dist.
2026-06-18 13:41:37 -07:00
gsxdsm
673a8a64c3
FN-6630: return text for empty task-list columns
...
Ensure filtered fn_task_list calls always return host-safe text for empty target columns.
- Add explicit empty-state copy for column filters with no matching tasks.
- Keep formatter fallback output non-empty before returning tool content.
- Cover empty active-column filters and existing small listings in CLI extension tests.
- Add a patch changeset for the published CLI package.
Files changed:
.changeset/fn-6630-task-list-empty-column.md | 5 ++++
packages/cli/src/__tests__/extension.test.ts | 36 +++++++++++++++++++++++++++-
packages/cli/src/extension.ts | 15 ++++++++++--
3 files changed, 53 insertions(+), 3 deletions(-)
Fusion-Task-Id: FN-6630
Fusion-Task-Lineage: e371bf11-5841-47d0-ac72-4cdf2f1716ba
2026-06-18 04:53:50 -07:00
gsxdsm
4929198b5a
FN-6629: Lower task-list text budget
...
Keep fn_task_list responses below host text imageification thresholds.\n\n- Lower the shared task-list text clamp to a 3,000 character host-safe budget.\n- Reuse the shared budget in CLI, dashboard, and engine fallback formatters.\n- Cover realistic column-filtered fn_task_list outputs and fallback budget behavior with regression tests.\n- Add a patch changeset for the published Fusion package.\n\nFiles changed:\n .changeset/fn-6629-task-list-budget.md | 5 ++\n packages/cli/src/__tests__/extension.test.ts | 88 ++++++++++++++++++++++\n packages/cli/src/extension.ts | 7 +-\n .../core/src/__tests__/task-list-format.test.ts | 25 ++++++\n packages/core/src/task-list-format.ts | 5 +-\n .../src/__tests__/planning-board-tools.test.ts | 4 +-\n packages/dashboard/src/planning-board-tools.ts | 8 +-\n packages/engine/src/__tests__/triage.test.ts | 4 +-\n packages/engine/src/triage.ts | 7 +-\n 9 files changed, 144 insertions(+), 9 deletions(-)
Fusion-Task-Id: FN-6629
Fusion-Task-Lineage: 6ec7cd33-d4e5-4c12-8512-c3823a9dfb3e
2026-06-18 03:24:57 -07:00
gsxdsm
4dd533753e
FN-6626: close cached CLI extension task stores
...
Close cached TaskStore handles so CLI extension task-tool tests shut down cleanly.\n\n- Add deterministic cached-store shutdown for the CLI extension and invoke it from extension teardown.\n- Expose the shutdown helper for tests and call it after canonical-project-root task-tool cases.\n- Add a patch changeset for the published @runfusion/fusion package.\n\nFiles changed:\n .changeset/fn-6626-close-cached-stores.md | 5 +++++\n .../cli/src/__tests__/extension-task-tools.test.ts | 8 ++++++++\n packages/cli/src/extension.ts | 19 ++++++++++++++++++-\n 3 files changed, 31 insertions(+), 1 deletion(-)
Fusion-Task-Id: FN-6626
Fusion-Task-Lineage: 65791502-8992-4037-8ca0-fe21c8283506
2026-06-18 02:39:10 -07:00
gsxdsm
d3ea8dff33
FN-6627: guard dist-barrel tests on complete core dist
...
Align dist-barrel regression guards so partial @fusion/core dist artifacts skip instead of failing mismatched dependency checks.
- Add a shared @fusion/test-utils predicate for complete built core dist barrels.
- Use the predicate in CLI and core dist-barrel regression tests before importing runtime dist modules.
- Cover absent and partial dist directories with focused predicate tests.
Files changed:
packages/cli/src/__tests__/extension.test.ts | 9 +++--
.../src/__test-utils__/__tests__/core-dist.test.ts | 46 ++++++++++++++++++++++
packages/core/src/__test-utils__/workspace.ts | 11 ++++++
.../core/src/__tests__/task-list-format.test.ts | 17 ++++----
4 files changed, 72 insertions(+), 11 deletions(-)
Fusion-Task-Id: FN-6627
Fusion-Task-Lineage: a05ad009-229d-44c2-a49d-2d9b3f3d6094
2026-06-18 01:45:18 -07:00
gsxdsm
c623b5108f
FN-6624: document fn_ask_question engine tool
...
Keep the Fusion skill engine-tool reference aligned with the registered chat question tool.\n\n- Add fn_ask_question to engine-tools.md with its chat scope and question schema.\n- Improve the skill-sync drift assertion so missing engine tools are reported directly.\n\nFiles changed:\n packages/cli/skill/fusion/references/engine-tools.md | 2 ++\n packages/cli/src/__tests__/skill-sync.test.ts | 6 +++++-\n 2 files changed, 7 insertions(+), 1 deletion(-)
Fusion-Task-Id: FN-6624
Fusion-Task-Lineage: 94917a44-cdf0-4da1-bb59-f3a7526ed48a
2026-06-18 00:26:48 -07:00
gsxdsm
593ebac85c
FN-6573: guard task-list formatter resolution
...
Make fn_task_list surfaces tolerate stale core runtimes without crashing.
- Resolve formatTaskListText from the runtime @fusion/core namespace with a typeof guard.
- Add bounded inline fallback formatting for CLI, dashboard planning-board, and engine triage task-list tools.
- Cover missing formatter exports with regression tests and add a published package changeset.
Files changed:
.changeset/fn-6573-task-list-format-resolve-fix.md | 5 +++
packages/cli/src/__tests__/extension.test.ts | 25 +++++++++------
packages/cli/src/extension.ts | 36 ++++++++++++++++++++--
.../src/__tests__/planning-board-tools.test.ts | 27 +++++++++++++++-
packages/dashboard/src/planning-board-tools.ts | 36 ++++++++++++++++++++--
packages/engine/src/__tests__/triage.test.ts | 25 +++++++++++++++
packages/engine/src/triage.ts | 36 ++++++++++++++++++++--
7 files changed, 174 insertions(+), 16 deletions(-)
Fusion-Task-Id: FN-6573
Fusion-Task-Lineage: 64577f09-5ca5-426e-a453-a91e6c2c3aee
2026-06-17 14:52:55 -07:00
gsxdsm
a84a8e1793
FN-6570: guard task list formatting fallback
...
Prevent fn_task_list surfaces from crashing when the runtime core namespace lacks the clamp export.
- Add a shared defensive task-list formatter with a bounded fallback clamp.
- Route CLI, dashboard planning-board, and engine triage fn_task_list output through the formatter.
- Cover missing, throwing, and non-string clamp behavior in core and CLI tests.
- Document the resilient task-list formatting behavior and add a patch changeset.
Files changed:
.changeset/fn-6570-task-list-resolve-fix.md | 5 ++
docs/cli-reference.md | 2 +-
packages/cli/src/__tests__/extension.test.ts | 57 +++++++++++++++++++++-
packages/cli/src/extension.ts | 8 ++-
.../core/src/__tests__/task-list-format.test.ts | 49 ++++++++++++++++++-
packages/core/src/index.ts | 2 +-
packages/core/src/task-list-format.ts | 35 +++++++++++++
packages/dashboard/src/planning-board-tools.ts | 8 ++-
packages/engine/src/triage.ts | 8 ++-
9 files changed, 164 insertions(+), 10 deletions(-)
Fusion-Task-Id: FN-6570
Fusion-Task-Lineage: 455f38a8-5e4f-4643-a3ce-088ef0c92b01
2026-06-17 06:14:10 -07:00
gsxdsm
8e9b7b75a4
FN-6534: track docs screenshots
...
Restore the screenshot assets that published docs reference so rendered documentation no longer shows broken images.
- Keep docs/screenshots trackable by removing the blanket ignore rule.
- Add the referenced screenshot PNG assets under docs/screenshots.
- Add a regression test that verifies screenshot Markdown links resolve to tracked files.
Files changed:
.gitignore | 2 +-
docs/screenshots/agents-view.png | Bin 0 -> 88902 bytes
docs/screenshots/chat-view.png | Bin 0 -> 74669 bytes
docs/screenshots/dashboard-overview.png | Bin 0 -> 209599 bytes
docs/screenshots/documents-view.png | Bin 0 -> 37607 bytes
docs/screenshots/git-manager.png | Bin 0 -> 135486 bytes
docs/screenshots/list-view.png | Bin 0 -> 108702 bytes
docs/screenshots/mailbox-view.png | Bin 0 -> 72370 bytes
docs/screenshots/memory-view.png | Bin 0 -> 118122 bytes
docs/screenshots/mission-manager.png | Bin 0 -> 80643 bytes
docs/screenshots/nodes-view.png | Bin 0 -> 59576 bytes
docs/screenshots/roadmaps-view.png | Bin 0 -> 37828 bytes
docs/screenshots/settings.png | Bin 0 -> 131052 bytes
docs/screenshots/skills-view.png | Bin 0 -> 92259 bytes
docs/screenshots/task-detail.png | Bin 0 -> 171502 bytes
docs/screenshots/terminal.png | Bin 0 -> 70273 bytes
docs/screenshots/workflow-steps.png | Bin 0 -> 179100 bytes
.../src/__tests__/docs-screenshot-links.test.ts | 96 +++++++++++++++++++++
18 files changed, 97 insertions(+), 1 deletion(-)
Fusion-Task-Id: FN-6534
Fusion-Task-Lineage: a0840905-8eb5-4da0-8c52-56904ac82e04
2026-06-17 03:42:03 -07:00
gsxdsm
d17a6dbd74
FN-6535: harden task list dist runtime coverage
...
Add regression coverage that exercises fn_task_list through the built @fusion/core dist exports.
- Expand core task-list formatting tests from export checks to a runtime-shaped fn_task_list execution path.
- Add a CLI extension regression test that mocks @fusion/core to the built dist barrel before executing fn_task_list.
- Cover broad and filtered task-list truncation paths with dependency rendering to catch missing clampTaskListText exports.
Files changed:
packages/cli/src/__tests__/extension.test.ts | 82 ++++++++++++++-
.../core/src/__tests__/task-list-format.test.ts | 110 ++++++++++++++++++++-
2 files changed, 190 insertions(+), 2 deletions(-)
Fusion-Task-Id: FN-6535
Fusion-Task-Lineage: dd405811-5655-406d-92e6-53f0e35ac217
2026-06-17 02:50:29 -07:00
gsxdsm
177cce4059
FN-6515: guard task list formatting exports
...
Add regression coverage for task-list formatter exports and broad list clamping.\n\n- Verify @fusion/core source and built dist barrels expose task-list formatting helpers.\n- Cover broad fn_task_list output clamping as one plain-text block.\n- Document the built-dist guard expectation for runtime-consumed core exports.\n\nFiles changed:\n docs/testing.md | 2 ++\n packages/cli/src/__tests__/extension.test.ts | 35 ++++++++++++++++++++++\n .../core/src/__tests__/task-list-format.test.ts | 32 ++++++++++++++++++++\n 3 files changed, 69 insertions(+)
Fusion-Task-Id: FN-6515
Fusion-Task-Lineage: b19dd616-6b5a-4b8a-8909-f368459fdc53
2026-06-16 23:32:38 -07:00
gsxdsm
cc5c5eb7bd
FN-6520: document workflow editor
...
Add a canonical dashboard workflow editor guide and connect it from related docs.
- Add a new Workflow Editor guide covering entry points, canvas anatomy, authoring panels, settings values, templates, AI design, import/export, and mobile behavior.
- Link the guide from the docs index, settings reference, and Workflow IR overview.
- Require the workflow editor guide in the docs README index coverage test.
Files changed:
docs/README.md | 1 +
docs/settings-reference.md | 2 +-
docs/workflow-editor.md | 158 +++++++++++++++++++++
docs/workflow-steps.md | 2 +-
.../cli/src/__tests__/docs-readme-index.test.ts | 1 +
5 files changed, 162 insertions(+), 2 deletions(-)
Fusion-Task-Id: FN-6520
Fusion-Task-Lineage: 9a2525a5-6ff8-48de-ae13-a7c7c5844f99
2026-06-16 22:52:00 -07:00