Repository navigation
Description
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)
- Core runtime — merged: M1: Redis Session Storage Backend #2053 (M1), M2: K8s Sandbox Client (Operations → Pod) #2054 (M2), M3: Persistent Channel + Env Injection + Find/rg #2055 (M3), M4: Knative Serverless Wrapper (Scale-to-Zero) #2056 (M4).
- AuthBridge RC1 egress PoC — merged: Feat: RC1 AuthBridge egress PoC — design + RC1-0 shared services moca#94, Fix local system clock being ahead of the repository server's timestamp, #96, epic: Pass user's access token to the Tool for accessing an external service #97, feature: Agent executes Token Exchange #104, feature: Document all the changes for running TT demo #107, feature: migrate from sse to streamable http for mcp examples #108 (single-tenant / static, live-verified Kind + OCP).
- Design record — merged: docs(adrs): reconstruct decision records from existing specs moca#81 (30 ADRs), Update for Llama Stack 0.2.3 #8 (Z1–Z3 specs + milestone registry).
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 viaconfigRef). Design: spec2026-09-02-claude-code-workflow-promotion-design, ADR-0030 (bundle + transport), ADR-0031 (memory read-only). MCP servers and subagents out of scope.
Outcomes:
-
/promotefrom 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.
- Grounded in spec
2026-06-26-pipeline-archetypes-requirements.md§4 (Archetype C). - Leans on: trigger/start abstraction (cron + event), incremental state (cursors / dedup), single-call LLM leaf filters, event-driven human gates, git-backed artifact store.
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)
- Live Claude Code → Pi session migration (config cloning only).
- Multi-user identity / per-user credential plane (future; M8: Zero-Trust Egress/Identity Spine (SPIRE + AuthBridge) #2060 / M10: Sandbox Credential Injection #2062 / M14: Generalized Credentialed Egress (non-MCP HTTP APIs) #2066).
- MCP servers and subagents in the promotion path (🌱✨ Leverage github release fetching for latest UI tag #214 §2, §9).
- Sandbox density / packing and its security threat model (separate epics).
Metadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
pdettori commentedon Oct 5, 2026
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:
/promote, content-addressed bundles, prompt leaves readingconfigRef— 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.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]
pdettori commentedon Oct 5, 2026
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).