Repository navigation
Open
Labels
enhancementNew feature or request
Description
Part of the Coding-agent subagents epic (#378). Item A3. It's independent.
Goal
A user on a laptop can /promote a small, curated Claude Code workflow into the stack's Redis — the #370 VM's or the #426 K8s stack's — and get a digest that prompt leaves can name as configRef.
Current state (verified on main @ 24c6f5e)
promotewrites straight to Redis (harness/src/promote-cli.ts:112,REDIS_URLor--redis-url). Bundles expire after 30 days (harness/src/config-store.ts:16).- The VM's Redis is
127.0.0.1:6379(deploy/vm/env/supervisor.env.example:20), so it can't be reached from a laptop. The K8s Redis (StatefulSet redis, namespacemoca) is likewise in-cluster only. /promote(deploy/claude/commands/promote.md) assumeskubectl port-forward.- The reachability path is substrate-specific: an SSH tunnel to the VM, or a
kubectl port-forwardtosvc/redison the K8s stack. The front door is the same Redis either way. - Bundle ownership and upload through the control plane is MI1 S3 (§7.1), not built.
Scope
- Document both reachability paths — the SSH tunnel on the VM (
ssh -L 16379:127.0.0.1:6379 …, then--redis-url redis://127.0.0.1:16379) and the port-forward on K8s (kubectl -n moca port-forward svc/redis 16379:6379, same--redis-url) — indeploy/vm/README.md,deploy/k8s/README.mdand in/promote's guidance. Keeppromote.md's permission rules intact: no$VARexpansions, and grants per command. - Write a minimal demo
.claude(promotion spec §11, "author in a sandbox"):- one research skill: fetch with
curl -o, then grep or read the file (Pi shows only the tail of long output), and cite sources; - a CLAUDE.md that sets the output format and a length limit.
- one research skill: fetch with
- Record the digest for the runbook (Coding-agent subagents A6: demo runbook #385).
Acceptance
/promote --redis-url …against the VM prints a digest, and so does it against the K8s stack's Redis over a port-forward.- A prompt leaf with that
configRefuses the skill, as the answer and transcript show — verified once per substrate.
Out of scope
- Bundle upload and ownership through the control plane (MI1 S3).
- The capability manifest (Coding-agent subagents B15: capability manifest per bundle digest #400).
References
- ADR-0030, promotion spec
docs/specs/2026-09-02-claude-code-workflow-promotion-design.md(§4.6, §11), Promoted config degrades silently: empty configRef runs bare, and skill sibling files are advertised at a path read cannot see #222
Working conventions (for a fresh session)
- Workspace:
git fetch, then create a worktree fromrossoctl/main(never localmain), under.worktrees/. Populate and buildpi-fork(git submodule update --init --recursive && cd pi-fork && npm ci && npm run build), thenpnpm install. A worktree without the pi-fork build does not typecheck. - Plans: write the plan with
superpowers:writing-plansintodocs/plans/<date>-<slug>.md. Plans are gitignored and never committed. Write it in chunks, one append per task. - Pre-flight table: list every process entrypoint, systemd unit, env example and shell/Go launcher whose boot contract changes, not only TypeScript call sites.
- Tests: Redis on 6379 must be up. Use each package's own
node_modules/.bin/vitest. vitest can exit non-zero with every test green, so grep the log forErrors. Redirect long output to/tmp/kagenti/....make lintskips untracked files. - Commits:
git commit -swithAssisted-By: Claude (Anthropic AI) <[email protected]>, neverCo-Authored-By. - Shared KVM rig: alert the owner before using it, record a manifest of what you install, and verify cleanup.
- Don't push or open PRs without the owner's go-ahead.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
[-]Claude Code subagents A3: promote a demo bundle to the VM over an SSH tunnel[/-][+]Claude Code subagents A3: promote a demo bundle over an SSH tunnel (VM) or a port-forward (K8s)[/+][-]Claude Code subagents A3: promote a demo bundle over an SSH tunnel (VM) or a port-forward (K8s)[/-][+]Coding-agent subagents A3: promote a demo bundle over an SSH tunnel (VM) or a port-forward (K8s)[/+]pdettori commentedon Oct 13, 2026
Status (2026-10-13). Largely superseded.
#458 (ADR-0038) added
mocactl promote, which uploads a bundle through the control plane (POST /v1/config-bundles). It needs nokubectland no Redis access, andmocactl run --config <digest>binds the bundle to a session. So the SSH-tunnel and port-forward scope here is obsolete.What remains: the minimal demo
.claude(the research skill and the CLAUDE.md), its digest for the runbook (#385), and a per-substrate check that a leaf using it follows the skill. Suggest retitling to drop "over an SSH tunnel".