II.
Page overview
Reference · livepage:docs-harness-features-backlog-gaps-process-composition-gap-proc-002
GAP-PROC-002: Process Nesting and Sub-Process Invocation overview
Inspect the raw attributes, linked wiki pages, and inbound or outbound graph edges for page:docs-harness-features-backlog-gaps-process-composition-gap-proc-002.
Attributes
nodeKind
Page
sourcePath
docs/harness-features-backlog/gaps/process-composition/GAP-PROC-002.md
sourceKind
repo-docs
title
GAP-PROC-002: Process Nesting and Sub-Process Invocation
displayName
GAP-PROC-002: Process Nesting and Sub-Process Invocation
slug
docs/harness-features-backlog/gaps/process-composition/gap-proc-002
articlePath
wiki/docs/harness-features-backlog/gaps/process-composition/GAP-PROC-002.md
article
# GAP-PROC-002: Process Nesting and Sub-Process Invocation
| Field | Value |
|-------|-------|
| Category | process-composition |
| Priority | High |
| Effort | L |
| Status | Missing |
## Description
Invoke a process from within another process as a first-class effect. Sub-processes inherit parent context.
## Current State
No sub-process effect. Must use ctx.task() with agent kind as workaround.
## Target State
ctx.subprocess() effect that invokes a child process. Child process inherits parent context. Results returned to parent as effect result. Child runs tracked in parent journal.
## Dependencies
- [GAP-AGENT-001](../agent-delegation/GAP-AGENT-001.md) -- sub-harness invocation for child execution
## Key Files
| Component | Path |
|-----------|------|
| Process context | `packages/babysitter-sdk/src/runtime/processContext.ts` |
| Runtime | `packages/babysitter-sdk/src/runtime/` |
## Recommendation
Phase 2 implementation. Add ctx.subprocess() as first-class effect. Create child run with parent context inheritance.
documents
[]
Outgoing edges
None.
Incoming edges
contains_page1
- page:docs-harness-features-backlog·PageHarness Features Backlog: Gap Analysis (Restructured)