Skip to content

epic: Design a serverless Harness solution for Rossoctl #2513

Closed

Description

@mrsabath

Summary

The serverless Harness (SH) runs agents as stateless, scale-to-zero compute over a durable session log, with tool execution in disposable sandboxes. The core is largely designed and built (30 ADRs + 31 specs in rossoctl/serverless-harness, M1–M4 runtime, single-tenant AuthBridge RC1 egress slice).

This epic is the design + use-case layer above the implementation track in #2024. Scoped for a ~1-month push, it focuses on landing two concrete, end-to-end use-cases rather than the full multi-user/creds design — those remain future work under #2024's M-series (#2060 / #2062 / #2066).

User & benefit

Users: Claude Code developers and research-agent authors.

  • Claude Code users promote a local workflow to a managed harness in a cluster with near-zero friction — build locally, run it in the cluster, close the laptop, check back later.
  • Research-agent authors run scheduled ingestion/filtering pipelines on the harness without standing up their own runtime.

Relationship to #2024

#2024 is the implementation track (M1–M14, durable-log / stateless-harness / disposable-sandbox mechanics). This epic sits above it, owning the design-of-record and driving the two use-cases below to a demonstrable end state.

Completed work (reference)

Use-case 1 — Promote a local Claude Code workflow to SH

Frictionless UX for Claude Code users: "clone" a set of skills, project memory, slash commands, and the CLAUDE.md chain from inside Claude Code (via a /promote command) into the serverless harness as a content-addressed config bundle, then start a session on the SH — also from within Claude Code — and later reconnect to check status via a / command. You can close the laptop and come back.

  • Scope now: cloning a workflow configuration (skills / memory / commands), not migrating a live session (Claude Code session → Pi session is materially harder and deferred).
  • The sandbox does not contain the Claude Code harness — only the commands CC invokes (e.g. gh) need to be present.
  • Foundation in flight: feat: promote a local Claude Code workflow into the serverless harness moca#214 (sh promote → canonical USTAR tar, sha256 content-addressed, Redis CAS, .claude/promoted.lock.json; a leaf runs it via configRef). Design: spec 2026-09-02-claude-code-workflow-promotion-design, ADR-0030 (bundle + transport), ADR-0031 (memory read-only). MCP servers and subagents out of scope.

Outcomes:

  • /promote from within Claude Code publishes a workflow bundle to SH
  • Start an SH session from within Claude Code against a promoted bundle
  • Reconnect / check status from within Claude Code after the laptop is closed
  • End-to-end in-cluster cold-start measurement (owed in 🌱✨ Leverage github release fetching for latest UI tag #214)

Use-case 2 — Gosia's Research Agent (scheduled ingestion & filtering)

Run the Archetype C pipeline on the harness: a cron/event trigger drives independent stages — fetch from external sources → deduplicate via incremental cursors → filter for relevance (a single cheap LLM call per item) → refine → record to a git-backed artifact store, with human curation through issue/comment gates. Some platform support already exists.

Outcomes:

  • Scheduled + event trigger drives the research pipeline on SH
  • Incremental cursors process only new items across runs
  • Single-call LLM leaf filter runs as an SH leaf session
  • Human curation via issue / comment gate works end-to-end

Non-goals (this cycle)

Activity

  1. added
    high priority
    epic
    on Sep 2, 2026
  2. added this to the Release v 0.9.0 milestone on Sep 2, 2026
  3. pdettori commented on Oct 5, 2026

    @pdettori
    Member

    Status update — 2026-10-05

    Rollup: 0 direct sub-issues — both use-case outcomes are tracked as checklists in this epic's body; neither outcome row is checked off.

    Where things stand: the execution moved to the moca repo (renamed from serverless-harness). Concretely:

    • Use-case 1 (promote a local Claude Code workflow): the promotion foundation — /promote, content-addressed bundles, prompt leaves reading configRef — landed in moca (PRs moca#214, 🌱 add action and dockerfile to build deps images #217, 📖 Add instructions and logging around failing install #224 and related, all merged; accounting issues moca#281–bug: Weather tool does not start #290 closed). The remaining gap vs. this epic's outcomes is the in-cluster UX: start-a-session and reconnect-from-inside Claude Code, and the owed cold-start measurement — which is exactly what moca#378 (Claude Code subagents on MOCA, track A: A2 mocactl subagent commands, A4 plugin) now owns.
    • Use-case 2 (Gosia's research agent / Archetype C): the leaf machinery (async prompt dispatch, KEDA queue, gates) shipped on the Knative path — which RA1 (moca's density-cutover design) now deprecates. The durable equivalent (async turns on P6 sessions) is milestone B-M1 of moca#378. The scheduled-ingestion trigger surface has not been rebuilt on P6.

    Phase: superseded-in-place. The design intent now lives on in moca; the epic here is a candidate for closing with a pointer to moca#378 (subagents / detached turns) and the P6-on-K8s track (moca#426), or for being re-scoped to only the UX-layer outcomes if those are still wanted in this repo.

    Assisted-By: Claude (Anthropic AI) [email protected]

  4. pdettori commented on Oct 5, 2026

    @pdettori
    Member

    Closing as superseded: execution of this epic's two use-cases moved to the moca repo (renamed from serverless-harness). Use-case 1 (promote a local Claude Code workflow) is now owned by moca#378 (Claude Code subagents — track A + B-M1), tracked here in #2625. Use-case 2 (research-agent scheduled pipeline) maps to moca#378's async-turn milestones on P6, since RA1 deprecates the Knative/KEDA path it was designed for. The P6/K8s substrate work tracks in #2624 (moca#426).

  5. added
    moca
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

epichigh prioritymoca

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions