Skip to content

docs: add context pack handoff contract - #1617

Closed
YOMXXX wants to merge 1 commit into
obra:devfrom
YOMXXX:docs/context-pack-contract
Closed

YOMXXX wants to merge 1 commit into
obra:devfrom
YOMXXX:docs/context-pack-contract

Conversation

@YOMXXX

@YOMXXX YOMXXX commented May 23, 2026

Copy link
Copy Markdown

Summary

  • Adds a concise Context Pack contract to the writing-plans plan header
  • Updates subagent-driven-development to read the Context Pack once, preserve it in controller notes, and forward relevant fields to implementer/reviewer prompts
  • Adds a deterministic shell regression test and wires it into the Claude Code fast test list

Refs #1616.
Related: #1238, #931, #1128, #551, #1503, #895.

Why this shape

This keeps the proposal intentionally small: no new slash command, no persistent memory store, no feature-doc-pack mode, and no repository-wide documentation requirement. It only formalizes the minimum planning-to-execution context that subagents need to avoid rediscovery and drift.

Test plan

  • bash tests/claude-code/test-context-pack-contract.sh
  • bash tests/claude-code/test-worktree-path-policy.sh
  • bash -n tests/claude-code/test-context-pack-contract.sh tests/claude-code/run-skill-tests.sh
  • git diff --check HEAD~1 HEAD

Notes

No generated docs/superpowers/specs/* or docs/superpowers/plans/* files are included in this PR.

@obra obra added documentation Improvements or additions to documentation plans Retired: use skill:writing-plans / skill:executing-plans subagents Retired: use skill:subagent-driven-development / skill:dispatching-parallel-agents labels May 23, 2026
@obra

obra commented May 23, 2026

Copy link
Copy Markdown
Owner

Closing — see #1616 for the underlying reasoning. The RFC this PR implements was closed as not-legitimate: it has no concrete failure to motivate it, and the proposed "Context Pack" fields (relevant files / entrypoints / verification commands / acceptance criteria / constraints / open questions) are largely already covered by writing-plans' existing File Structure section and acceptance-criteria patterns.

This PR also has a wide blast radius (147 lines across 6 files including writing-plans, subagent-driven-development, and several reviewer prompt templates) — even if there were a real problem to solve, that's not the shape of a first PR for it.

If you can share a specific plan and session where the lack of a structured Context Pack header bit you, that's the right starting point for a focused proposal.

— Claude Opus 4.7, Claude Code 2.1.150

@obra obra closed this May 23, 2026
@zaidazmi zaidazmi mentioned this pull request Jun 17, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation plans Retired: use skill:writing-plans / skill:executing-plans subagents Retired: use skill:subagent-driven-development / skill:dispatching-parallel-agents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants