Prompt #126
Back to promptsrag-add lesson with AP5 source-authority
- Variables
- {'name': 'topic', 'description': 'long topic'}, {'name': 'topic_short', 'description': 'β€80 chars'}, {'name': 'tags_comma', 'description': 'comma-separated'}, {'name': 'agent_role', 'description': 'agent-claude/human/etc'}, {'name': 'issue_num', 'description': 'gitea issue#'}, {'name': 'author_kind', 'description': 'tool|human|ai'}, {'name': 'lesson_text', 'description': 'actual lesson body'}
- Tags
- stack-aware,rag,lessons,ap5,fu2,obsidian
- Source
- research-2026-05-01-stack-aware-handcrafted
- Use count
- 0
- Created
- 2026-05-01T18:30:35.938632+00:00
- Updated
- 2026-05-01T18:30:35.938632+00:00
Content
Author a rag-add lesson for `{topic}` that's well-formed for AP5 source-authority + FU2 secret-scan + obsidian-mirror.
CLI invocation (note: rag-add hits glug:8800 legacy endpoint until Wave-8h migration; check `rag-search --help` for current default URL):
```bash
rag-add 'lesson body text' \
--topic '{topic_short}' \
--tags '{tags_comma}' \
--agent '{agent_role}' \
--source-issue {issue_num} \
--author '{author_kind}' \
[--reviewed] # only set if human-reviewed (FU2)
[--no-obsidian] # default mirrors to /nvmetank1/brain/vault/...
```
AP5 expectations baked in:
- author: `tool|human|ai` β `ai` defaults to reviewed=0 (FU2 hygiene queue)
- source: should reference upstream URL or commit SHA
- source_authority: 100=ADR, 80=human-reviewed, 50=tool default, 20=ai-generated, 10=web-scrape
- tags: include at least one of the project's vocab (rag-stack, wave-7, ap-NN, fu-N, β¦)
- obsidian_path: auto-set to /nvmetank1/brain/vault/<vault>/<datestamp>-<slug>.md if --no-obsidian not passed
FU2 secret-scan: rag-add rejects content matching known patterns (AKIA*, BEGIN PRIVATE KEY, github_pat_, etc).
Lesson content: {lesson_text}