Skip to content

feat: add local Paperclip task source - #17251

Draft
LorenzoTTGT wants to merge 1 commit into
stablyai:mainfrom
LorenzoTTGT:feat/paperclip-task-source
Draft

LorenzoTTGT wants to merge 1 commit into
stablyai:mainfrom
LorenzoTTGT:feat/paperclip-task-source

Conversation

@LorenzoTTGT

Copy link
Copy Markdown

ELI5

Adds Paperclip beside Linear and Jira in Orca’s Tasks area. A user running Paperclip locally can connect a company/project, browse issues, and open a linked Orca workspace without letting Orca claim or modify the Paperclip issue.

What Changed

  • Added paperclip to Orca’s provider identity, task-source context, linked-item, settings, and Tasks UI flows.
  • Added a main-process, read-only Paperclip client for unauthenticated local-trusted servers.
  • Added issue listing and workspace-composer linkage for Paperclip tasks.
  • Added an authoritative main-process launch boundary that:
    • allows only literal loopback HTTP (127/8 or [::1]);
    • performs a fresh issue plus active-run admission immediately before mutation;
    • requires matching immutable item/source identity;
    • blocks active, ambiguous, duplicate, concurrent, retry, remote, SSH, runtime, and context-only bypasses.
  • Added explicit unsupported behavior for the web client and remote runtime RPC paths.
  • Persists only canonical connection identity; display labels are refetched.

Why

Paperclip already works from Orca terminals through its CLI, but it cannot be browsed or linked through Orca’s native task-manager UI like Linear and Jira. This PR provides that ergonomic bridge while keeping Paperclip as task authority and Orca as workspace authority.

The first slice is intentionally local-only and read-only. It does not add credentials, Paperclip writes, checkout/release, status changes, heartbeats, lifecycle supervision, background polling, or remote transport.

Linked Issue

Fixes #17197

Visual Proof

Pending before/after capture. This PR remains draft until visual validation is attached.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Validated on macOS arm64:

  • Focused Paperclip/touched-boundary suite: 20 files, 148 tests passed.
  • pnpm tc passed.
  • pnpm lint passed, including type-aware, reliability, localization, max-lines, and runtime-boundary audits.
  • pnpm build passed for desktop, web projection, relay targets, CLI, and native macOS helpers.
  • git diff --check passed.

A full parallel pnpm test run was attempted but stopped after widespread unrelated subsystem timeouts under severe local resource contention made it non-diagnostic. The focused boundary suite was rerun in isolation and passed. Electron visual validation was not available in the implementation session because its required validation skill was unavailable; visual proof remains a draft-PR follow-up.

AI Disclosure

Implemented with OpenAI Codex. The plan/architecture and final consequential diff received independent AI review; both final verdicts were PASS after the authoritative mutation-boundary findings were corrected.

Review

Please focus on:

  • whether a local-only first slice fits Orca’s task-source direction;
  • the main-process admission/duplicate boundary;
  • the explicit decision not to advertise or transport Paperclip over runtime RPC;
  • whether company/project onboarding should remain ID-based in this first PR or gain discovery UI before readiness.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Security: no credential surface; literal loopback only; direct node:http with no proxy agent, redirects disabled, absolute deadline, and 2 MiB response cap.
  • Cross-platform: shared TypeScript paths are platform-neutral; build passed all relay targets. Runtime/SSH/mobile linkage is deliberately rejected for this MVP.
  • Backwards compatibility: existing providers retain their explicit behavior; web preload returns a controlled unavailable Paperclip status instead of an undefined namespace.
  • Performance: no background polling; provider reads occur only for status/list/detail/admission actions.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Add a read-only Paperclip integration that lets desktop users connect a
local-trusted instance, browse issues, and create safely linked workspaces.

- add bounded loopback-only main-process API and canonical connection storage
- integrate Paperclip across Tasks, settings, preload, and linked-work-item flows
- enforce fresh admission, local-only routing, and duplicate prevention at mutation boundaries
- cover provider identity, transport limits, runtime rejection, and workspace linkage

Co-Authored-By: Claude <[email protected]>

This branch has not been deployed

No deployments
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.

[Feature]: Add Paperclip as a read-only task source

1 participant