Skip to content

feat(tasks): add Backlog.md task source - #25990

Open
L0ndra wants to merge 5 commits into
stablyai:mainfrom
L0ndra:task/T-1795-orca-backlog-md-task
Open

L0ndra wants to merge 5 commits into
stablyai:mainfrom
L0ndra:task/T-1795-orca-backlog-md-task

Conversation

@L0ndra

@L0ndra L0ndra commented Oct 6, 2026 •

Copy link
Copy Markdown

ELI5

Projects using Backlog.md can browse, create and edit their own tasks in Orca, then open the workspace composer with the selected task as an editable draft. Backlog.md remains the source of truth; there is no second task database or hosted-account requirement.

What Changed

  • Add a core Backlog.md source to desktop Tasks and its settings: project selection, search, configured-status filters, pagination, details, creation and editing.
  • Read bounded project-local task files. Create/edit through the project's installed [email protected] CLI with literal arguments; never install it automatically. Refuse unsafe paths and configurations with automatic Git/network/status-hook effects.
  • Adapt the feature to upstream 577a1f1f in merge commit 13d3a1c77c, without rewriting the PR branch. Use the owning Orca server's runtime and its registered project ID. Advertise tasks.backlog.v1; older servers are capability-gated. The obsolete SSH relay integration is removed, not moved into the WSL guest. Unserved legacy SSH projects fail closed rather than reading local files.
  • Preserve edited task drafts through delayed workspace-creation failure, Reopen, retry and agent prefill. Fix editor focus restoration and let dialogs handle Escape before the Tasks page does.
  • Add regression and hidden-Electron tests for the recovery flow, keyboard use, a 600×400 viewport and draft delivery to a local stand-in agent.

Why

This extends the existing Tasks and workspace-composer flows while retaining CLI-controlled task mutations. The current contribution remains a core integration with create/edit support; it is not being replaced by a read-only plugin. The mutation contract deliberately targets one tested CLI version rather than guessing compatibility.

Linked Issue

Fixes #25955

Visual Proof

These existing attachments are historical captures, not screenshots of the latest commit. They show the same feature before the upstream migration; current hidden-renderer scenarios are described below.

Before — upstream 81a1968b After — earlier feature revision 353b352a
Before: Tasks without Backlog.md After: Backlog.md list following real CLI create/edit

Fresh screenshots were captured locally by tests/e2e/backlog-tasks.spec.ts for the reviewed tree in 13d3a1c77c, including narrow editor/composer, recovery toast and reopened draft. They are not attached here or committed. The test asserts that application windows stay hidden.

Testing

Results below apply to the reviewed tree committed as 13d3a1c77c. Checks ran on macOS with disposable projects and isolated profiles. No live provider or real agent was launched.

Check Result
pnpm tc PASS, exit 0.
Targeted unit/integration regression group 119 files passed; 477 tests passed, 6 skipped. Five skips are existing conditional cases; one is the opt-in real-CLI test, run separately below.
Real pinned-CLI service tests 12/12 passed using an installed [email protected].
Hidden Electron scenarios 2/2 passed: list/read/create/edit/error recovery/composer; keyboard/focus/narrow viewport; delayed failure → Reopen → retry → draft delivery.
Recovery regression sensitivity Removing draft preservation or delivery made the relevant tests fail; fixes were restored before the passing runs. This is not a claim that every existing test received mutation testing.
Electron renderer/main build and CLI bundle PASS using local build scripts without the global dev-CLI installer.
Feature-file formatting/lint, RPC catalog, localization checks PASS in the scoped runs.
Independent AI review Initial recovery finding fixed; targeted follow-up PASS with no open blocking finding. Not a maintainer approval.
Commit hook Commit succeeded with hooks enabled. Lint/format tasks completed, but lint-staged reported ignored docs/reference / docs/schemas paths while applying results. The committed tree was verified byte-for-byte identical to the reviewed pre-hook tree. Not a clean full-hook assertion.

Reproduce the opt-in tests with ORCA_BACKLOG_TEST_PACKAGE pointing to a local [email protected] installation and ORCA_BACKGROUND_LAUNCH=1. Current Electron proof used a temporary Playwright configuration to avoid the standard global setup's /usr/local/bin/orca-dev installer, after building the app locally. Agent-delivery proof uses a local stand-in executable that records argv, not a live provider.

Remaining verification limits

  • Full pnpm lint, full test suites and full desktop/native pnpm build are not claimed green. The global dev-CLI installer was excluded from local build stages.

  • pnpm run typecheck:e2e fails with 78 diagnostics in cloud/mobile paths, none in the changed feature files. Standard pnpm tc passes.

  • Live SSH/managed-server execution, Windows/Linux and screen-reader behavior have not been runtime-verified.

  • GitHub CI and required human approvals remain separate merge gates; local test results do not establish them.

  • I manually tested these changes locally — testing was automated hidden Electron, not a manual interactive pass.

  • Automated tests added/updated.

  • Every added test fails without this change — targeted recovery/delivery regressions were checked; no blanket mutation-testing claim.

Risk

Level: Medium.

The riskiest boundaries are local task mutation and cross-host routing. Runtime requests resolve a registered repoId, ignore caller-supplied paths and retain authentication/mobile admission checks. Capability checks prevent unsupported-server calls. Unconfirmed CLI completion requires refresh and inspection rather than an immediate retry; this is not durable exactly-once execution.

The composer changes preserve Backlog drafts without changing prompt defaults for other task sources. The Escape fix affects other dialogs on the Tasks page as well. Mobile does not expose the new source. A legacy unserved SSH project may still appear in the picker and then show a reconnect error.

Back out by reverting the feature changes; do not blindly revert the upstream-synchronization merge. Reverting the integration does not undo task files already created or edited through the CLI.

AI Disclosure

Original implementation: OpenAI GPT-6 Astra, with Anthropic Claude Opus 5.5 reviews. Current upstream adaptation and recovery fixes: Anthropic Claude Opus 5.5; independent cumulative review and targeted follow-up: OpenAI GPT-6 Astra. Concrete findings were verified and repaired before publication.

Review

Suggested entry points: src/main/backlog/, runtime integrations/backlog/, backlog-task-source.ts, composer quick-submit/startup paths and tests/e2e/backlog-tasks.spec.ts.

The earlier relay-path security finding was withdrawn after its trust boundary was clarified. The current implementation removes that obsolete relay path entirely and uses the owning runtime's registered project. The earlier resolved discussion is not proof of live remote testing on this revision.

Agent skill upstream boundary

  • Not applicable: no copied or mechanically translated skill-installer implementation.

Notes

Known nonblocking test-hygiene issue: the E2E stand-in agent creates a temporary directory without fixture teardown. No user project or credential is used. Backlog.md 1.48.0 remains the intentionally narrow mutation contract; no release bump or publication automation is included.

Author X/Twitter handle: not provided.

Checklist

  • Focused Backlog.md feature and linked issue; 49 changed files against the integrated upstream snapshot.
  • Explained user-facing behavior, mechanism and choice of approach.
  • Stated risks and rollback limits.
  • Historical before/after attachments retained with explicit revision provenance; current screenshot publication remains outstanding.
  • Self-reviewed and independently AI-reviewed for correctness and security.
  • Cross-platform, SSH/remote, and path/shortcut impact considered; untested scope disclosed.
  • Full lint/typecheck/test/build and remote CI green — only the scoped results above are confirmed.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Backlog.md as a task source

2 participants