Skip to content

feat(aidd-context): declare sources and po-practices memory capabilities - #1

Open
dkp-consult wants to merge 1 commit into
po/basefrom
po/00-memory-capabilities
Open

dkp-consult wants to merge 1 commit into
po/basefrom
po/00-memory-capabilities

Conversation

@dkp-consult

@dkp-consult dkp-consult commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

🎯 What & why

Project memory gains two optional capabilities, sources and po-practices, so the product discovery skills that follow in this stack find their registries without anyone wiring them into CLAUDE.md or AGENTS.md by hand.

🛠️ How it works

  • capabilities.md:13-14 declares both rows:
    • sources.md records where product evidence can be read and how an agent reaches it.
    • po-practices.md records how the team runs product work.
  • Each capability has a template and a scaffold entry. The memory contract (MEMORY-03, 05, 06) checks the templates and the capability table.
  • Once created, the memory hook lists both files like any other root memory file.

🧪 How to verify

node scripts/check/run.cjs
node scripts/check-tests-leave-git-alone.js -- node --test 'scripts/__tests__/**/*.test.js'

⚠️ Heads-up

First PR of a 16-PR stack (see ai-driven-dev#1405). Nothing reads these capabilities until po/11-research-plan.

🔗 Linked issue

Refs ai-driven-dev#1405

✅ I certify

  • I DO CERTIFY I READ EACH LINE OF THE PULL REQUEST BECAUSE I AM A SOFTWARE ENGINEER, NOT A AI PUPPY.

🤖 Generated with Claude Code

@dkp-consult

Copy link
Copy Markdown
Owner Author

Issue draft (to file on ai-driven-dev/framework)

Issues are disabled on this fork, so the draft lives here for review.

Title: feat(aidd-pm): add the product discovery cycle (research, insights, market, prioritize, impact)

Problem to solve

aidd-pm covers delivery artifacts: Product Brief, Epic, User Story, Task, Spike and Defect. It has nothing for the discovery work around them. A Product Owner can't use it to:

  • turn an unproven assumption into evidence they can collect;
  • synthesize what customers say into rated findings;
  • follow competitors over time;
  • rank a backlog with a stated method;
  • check after release whether a change moved its success signal.

Today the Product Brief and the Epic accept an assumption with nothing to check it against. They also have nowhere to send the user when evidence is missing.

Proposed solution

Add five aidd-pm skills that form one cycle. Each skill writes its own artifact and hands off to the next one; none invokes another silently.

Skill Produces Reads from
11-research-plan a research plan per set of assumptions, the sources registry, interview / survey / export kits project memory, Product Brief, Epic
12-insights a living insights registry per theme (customer rows, rated by evidence) the sources registry, research plans
15-impact an impact report: baseline and decision rule frozen before release, verdict after the sources registry, Epic / Story success signals; feeds measured rows into the registry
13-market-watch dated, cited journals per competitor; market rows in the registry the market rows of the sources registry
14-prioritize a dated decision snapshot, ranked by the method project memory records the insights registry, research plans, impact reports

How they depend on each other: research plan → insights → impact. Market watch writes into the same registry. Prioritize reads all three artifacts. Product Brief and Epic gain handoff rows to these skills:

  • an assumption with no evidence → Research plan;
  • several Epics competing for capacity → prioritization;
  • an Epic becoming ready with a success signal → impact.

Project memory. aidd-context:02-project-memory declares two new optional capabilities. Without them, the registries had to be wired into the AI context files by hand.

  • sources → sources.md: where product evidence can be read, and how an agent reaches it.
  • po-practices → po-practices.md: the team's approved research, insight, market, prioritization and impact practices.

Where artifacts go. Each skill resolves its location from the project's backlog.md memory, through the support and representation its Representation table names. It falls back to aidd_docs/backlog/<type>/ only when backlog.md is absent or silent on that artifact, and tells the user. This follows the persistence tables of skills 01 to 10 and the backlog orchestrator's supports rule.

Known limitation. Like skills 01 to 10, these skills write Markdown only today. If backlog.md maps an artifact to a tracker, writing there is the project's own integration. A registry or journal mapped to a support that holds no file makes the skill ask the user.

Format. The five new skills are written in the lean format checked by 04-skill-generate/scripts/validate-skill.cjs, the skill contract scripts/check/run.cjs also applies (it replaced check-skill.cjs from ai-driven-dev#1273). As agreed with the maintainer, the existing skills 01 to 10 are restyled into the same format, one PR each. Six of them (02, 04, 05, 07, 09, 10) also carry a fix found by the small-model tests below; each PR body names it. For 02-user-stories, the restyle keeps the story contract (scripts/contract.json, validate-story.cjs) and widens it to the relation keys relations.md already required. aidd-pm goes from 10 to 15 skills, the framework from 56 to 61. The former ## Test tables of the actions are kept aside as acceptance cases for the real tests.

Delivery: stacked PRs. Each PR targets the one before it.

Order Branch Base
1 po/00-memory-capabilities next
2 po/11-research-plan po/00-memory-capabilities
3 po/12-insights po/11-research-plan
4 po/15-impact po/12-insights
5 po/13-market-watch po/15-impact
6 po/14-prioritize po/13-market-watch
7 to 16 po/restyle-01-ticket-info … po/restyle-10-task the previous branch

Tests. Every branch passes lefthook run pre-commit --all-files (1968 scripts tests), the full node scripts/check/run.cjs, and validate-skill.cjs on its skill with no finding. Each restyle removes from scripts/check/baseline.json only the findings it fixes in its own skill. The top branch also passes lefthook run pre-push.

Small-model runs. Per testing.md, every skill in the stack ran end to end on Claude Haiku and gpt-5.6-luna (Codex), one run each, in a throwaway project whose sessions were deleted after. Each run sent a request, then an approval, and was judged on five points: the skill fired, stopped at each wait, wrote nothing before approval, produced an artifact matching its template, at the right place.

  • First run: 13 of the 26 runs that end in a write saved before approval. The cause was the wording, on both providers alike. Skills with an unconditional "show the draft and wait" stopped 10 times out of 10. Skills whose gate read "confirm approval or bounded write authority" treated the request itself as authority, and wrote in 11 of 12 runs. 04-spec had no approval step at all. validate-story.cjs also rejected the parent and source keys that relations.md requires.
  • Fix: every write is now preceded by "show the draft, ask for approval, and wait: the request that started the run is not approval". Only a calling skill or agent that names the exact write skips the wait, which keeps aidd-orchestrator:02-backlog working. The contract and the smaller defects were fixed in the PR of the skill they belong to.
  • Final run: all 15 skills stop at each wait and write only once approved, on both models, with the final text of the stack.

Follow-ups (not in this stack)

  • backlog.md may name fields differently from the skills (parents vs parent, project statuses vs skill statuses). Nothing says which vocabulary wins; one Haiku run used the project's.
  • 03-prd writes a flat dated file, while 04-spec writes a feature folder. One convention for both would let 04 reuse 03's folder.
  • 03, 06, 11, 14 and 15 passed with their unconditional waits, but their rule line still says "bounded authority" without defining it, unlike the other ten.
  • 06-product-brief: mark its optional sections, and name its closing question.

Content type

  • Skill
  • Plugin

Target tool(s)

  • Claude Code
  • Cursor
  • Other: every host aidd translates to

Additional context

The five skills were rehearsed end to end in a masterclass demo project, and the lessons are folded in. Without the memory capabilities, sources.md and po-practices.md had to be wired by hand into CLAUDE.md, AGENTS.md and the memory README.

The product discovery skills read and write sources.md and po-practices.md,
but project memory never detected, scaffolded or listed them. Both are now
optional capability rows with a template, known to the scaffold script.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

1 participant