Skip to content

docs(subagents): define structured result contract - #260

Closed
627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-155-structured-result
Closed

627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-155-structured-result

Conversation

@627150795

Copy link
Copy Markdown
Contributor

Problem

Direct Subagents and Workflow children currently expose several representations of one run: the native child transcript, the normalized snapshot, the bounded parent projection, and optional workflow artifacts. Without an explicit boundary, a projection or JSON-shaped payload can be mistaken for the canonical result or for completion evidence.

Value

Define a small, versioned vocabulary for future structured child results while preserving the current text-only runtime behavior. This gives direct Subagents and Workflows a shared basis for partial outcomes, validation, evidence, and bounded delivery.

Approach

  • Add docs/design/STRUCTURED_SUBAGENT_RESULT_CONTRACT.md.
  • Define canonical result ownership, parent projections, optional schema validation, failure/partial-result semantics, evidence boundaries, and budget/privacy rules.
  • Mark the document as a design-only first pass; no runtime API, dependency, or result schema is changed.

Validation

  • git diff --check
  • bun run lint
  • bun run typecheck

Impact

Documentation only. The current implementation remains the source of truth for shipped behavior. This is a focused first pass for #155 and does not claim the complete runtime feature is implemented.

Addresses #155

@tt-a1i

tt-a1i commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Thank you for preserving this research. We are closing this PR as a source record for the Execution lifecycle consolidation tracked in #277. This is not a finding that the content is wrong. The current queue contains overlapping contracts from one stale base, so we will extract only settled facts and unresolved decisions into at most one successor record, citing this PR explicitly. Please do not spend time rebasing this branch.

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.

2 participants