Skip to content

feat(planning): prd and plan read a map issue; decompose attaches sub-issues - #15805

Merged
kyle-sexton merged 4 commits into
mainfrom
feat/spec-flow-map-source
Nov 13, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
feat/spec-flow-map-source

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: owner decisions from a planning interview on the spec flow (2026-11-12)

Summary

Three owner decisions on the spec flow (planning interview, 2026-11-12), built as decided:

  • Q384: no new skill. /planning:prd and /planning:plan accept a map issue as their source and read its decision items. /work-items:decompose attaches native sub-issues whenever its source is a tracker issue. The worker brief /implementation:implement-dispatch writes gains a test-first line.
  • Q385: no code change; /work-items:decompose's closing text says to run the items with /work-items:ship run at the keyboard, otherwise to leave agent-ready items for the lanes.
  • Q382: the "title linked to its absolute URL, never a bare #<n>" rule for tracker links, stated today only in /planning:wayfind, also applies to the tracker text prd, plan (publish step) and decompose write.

Already existed: decompose's #<item> source already read the body and paginated comments and extracted decisions, so a closed map handed to /work-items:decompose #<map> already worked as a source; decompose already passed --parent, but only to a spec container it created; /implementation:implement Step 3 is test-first, but the dispatch brief (items 1 to 17) had no test-first line.

Fix

  • plugins/planning/context/map-source.md (new, shared by prd and plan): detect a map (## Destination and ## Decisions-so-far, no **Execution shape:** line), then take the decisions from the closing comment of a closed map (found by content, not position) or, for an open map, from each Decisions-so-far line's Resolved: comment, following superseded by lines; open items become open questions. All reads go through /work-items:track, per ADR 0060.
  • /work-items:track view --comments: the plumbing that read needs. No track action returned comments, and ADR 0060 bars provider commands in planning skills; it uses the adapter's existing paginated "List item comments" recipe.
  • prd: an Action Router row and a Step 2 bullet for #<map>. plan: an Action Router row and a Step 1 check. Both keep their gates inside the re-attach slice.
  • decompose: --parent "<source-item-id>" on every item when the source is a tracker item; with a container also approved, the container goes under the source item and the items under the container. Same in re-decompose.md and container-lifecycle.md.
  • decompose report and ## Next: /work-items:ship run #<container-id> at the keyboard, else the lanes.
  • Q382: one line in prd ("What this skill does NOT do", past the re-attach cut), one at plan's publish step, and a Links rule in decompose's body-fill rules (no shared reference spans planning and work-items; lib/issue-house-style.md is vendored into six plugins and restates no rules, so it was left alone). Judgment call: decompose's ## Parent line keeps its Refs #<parent> opening before the titled link, because the decomposed-parent close (issue-conventions.md, track done, track audit) matches that opening; those readers' wording now says the line opens with it.
  • implement-dispatch: brief item 18, a Test-first: line (one failing test per behavior, seen to fail, then the smallest correct code, and the failing run's output returned beside the passing run; a project cadence replaces it; a phase with no testable logic says Test-first: none (<reason>)). Competing-attempt briefs carry it. The implementer agents need no change: their "the brief is the contract" clause covers it.
  • Eval cases: plugins/planning/evals/prd-closed-map-source-decisions-not-reasked, plugins/planning/evals/plan-open-map-source-reads-resolution-comments, plugins/work-items/evals/decompose-source-item-parent-and-titled-links, plugins/work-items/evals/decompose-closing-text-ship-run-or-lanes. The existing brief-requires-red-run-evidence and control-docs-phase-no-red-run cases already cover the test-first line. No paid evals run.
  • Changelog fragments for planning, work-items and implementation (minor).

Verification

  • plugins/planning/tests/*.test.sh (12 files) and plugins/work-items/tests/*.test.sh (4 files): all exit 0; reattach-slice.test.sh 25/0 for planning and 5/0 for implement-dispatch.
  • plugins/work-items/skills/work/unattended-callers.test.sh: 4/0.
  • scripts/check-changed-skills.sh origin/main: 5 skills, 0 failed (size warnings predate this change).
  • scripts/validate-plugin-contracts.mjs: pass. scripts/check-next-graph.py: pass. scripts/check-changelog-fragments.sh --check: valid.
  • validate-cases.py on plugins/planning/evals and plugins/work-items/evals: no FAIL; the new regex graders pass their samples offline.
  • .github/scripts/intake-triage/edges.test.mjs already covers a ## Depends on list item written as a same-repository issue URL, so the titled-link form still yields the edge.

Related

  • Owner ledger rows Q382, Q384, Q385 (planning interview, 2026-11-12) are the basis for each new standing instruction.
  • /planning:wayfind files are untouched; another pull request owns them.

Follow-ups

  • /work-items:work treats a native parent carrying the container label as a spec container, so an item decomposed from a map gets the map body quoted as its container Brief. Read as data, harmless, but new.
  • Attaching a sub-item to a closed parent (wayfind closes the map before handing it to decompose) is UNVERIFIED against GitHub; the adapter applies no state check.
  • /work-items:ship run resolves only a spec container with an **Execution shape:** line, so the closing text names #<container-id>; plain items with no container have no ship run path.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VQb9Q4F46UumaUgXeUdpYZ

kyle-sexton and others added 3 commits November 12, 2026 22:28
…-issues

- prd and plan accept a map issue as their source; context/map-source.md
  reads its decisions through /work-items:track view --comments (the
  closing comment of a closed map, else each Decisions-so-far line's
  resolution comment).
- track view gains --comments, backed by the adapter's paginated
  comment recipe.
- decompose attaches native sub-items whenever its source is a tracker
  item, and closes its report with ship run at the keyboard or the lanes.
- implement-dispatch worker briefs carry a Test-first line (item 18).
- prd, plan's publish step and decompose write tracker links as the
  item's title linked to its absolute URL; decompose keeps the
  Refs #<parent> opening the decomposed-parent close matches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Q4F46UumaUgXeUdpYZ
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 13, 2026 03:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T03:37:00.453151Z 31415c0 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 4501adef8ea8993e9380743ed6ac88f0e01c73dc: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15805, incremental (31415c0 → 4501ade)

No security issues found. I read every hunk of all 6 files on the incremental list in .claude-lane/incremental.diff. None of them matches a trusted path, and no .claude-plugin/plugin.json or marketplace.json changed, so there are no manifest lines. This lane had already reviewed an earlier head (blocking only: yes), so only CRITICAL and IMPORTANT findings would have been posted. There were none.

What changed and what I checked

  • Eval fixtures (5 files under plugins/planning/evals/plan-open-map-source-reads-resolution-comments/ and plugins/work-items/evals/decompose-*):
    • The only change is example URLs moving from https://github.com/o/r/... to https://example.com/o/r/..., in prompts, a sample answer and a grader's criteria.
    • The cases are still data only. They add no executable code or secrets, and their tool grants are unchanged.
  • plugins/work-items/skills/decompose/SKILL.md, two wording edits:
    • The ## Parent template comment now says to cite the plan PR as a titled link, [<PR title>](<PR URL>).
    • The closing-report text now names /work-items:ship run #<container-id> only when a spec container was published, and otherwise points to the lanes.
    • Both edits add or clarify guidance and remove no guardrail. They change nothing about trust, labels, tokens or dispatch, so the instruction-surface lens raises nothing.
  • Embedded text: nothing in the PR context or the changed lines tells the lane to pass the PR, skip a check or drop a finding.
  • Prior findings: this lane's only earlier post is a summary with no findings, so nothing carries over.

Spend (not a finding)

The edited eval cases use prepaid model usage when they run. They cause no real charge.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 31415c0d3a01a1a917152907a9b86cc90d2e4722; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 4501adef8ea8993e9380743ed6ac88f0e01c73dc: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #15805, incremental (31415c0d → 4501adef)

Scope: I read every hunk of all 6 files in .claude-lane/incremental.diff. This lane already reviewed an earlier head, so this pass reported blocking findings only. I found no new findings.

My two earlier findings are both fixed with the wording I asked for. Both threads are resolved, with the owner's reply stating the fix:

  • Closing text (plugins/work-items/skills/decompose/SKILL.md Step 5): the /work-items:ship run #<container-id> line now applies only "when a spec container was published". Otherwise the items go to the lanes. This matches ## Next (L360).
  • ## Parent template, Source: line: it now cites the plan's PR as [<PR title>](<PR URL>) instead of a bare #<pr>. That fits the Links rule.

Eval fixture URL change (https://github.com/o/r/... → https://example.com/o/r/...): I checked that the four changed eval cases still agree with themselves:

  • In decompose-source-item-parent-and-titled-links, the prompt, expected_outcome and the LLM grader's point (3) all use the same https://example.com/o/r/issues/300.
  • In plan-open-map-source-reads-resolution-comments, the regex grader graders/live-decision-645.md matches (?:#|issues/)645\b. Both the changed sample and the prompt still match it.
  • None of the four changed eval directories still contains a github.com/o/r URL.

Verification: I ran nothing; this lane has no shell.

Verifier dropped 0 of 0 candidates.

…iner

Decompose's closing text named a container id even when no spec
container was published. The Parent template's Source alternative now
cites the plan's PR as a titled link, matching the Links rule. The new
eval cases use example.com for their made-up tracker URLs, so the
online link check does not fetch them.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Q4F46UumaUgXeUdpYZ
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 47314c2 Nov 13, 2026
54 checks passed
@kyle-sexton
kyle-sexton deleted the feat/spec-flow-map-source branch November 13, 2026 03:59
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant