CLI leaks unrellated message about unrecognized section
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
Research direction
Start with internal/content/sections.go, especially RecognizedContextSections and ValidateContextSections, then inspect content/packs/cap/context.md around the Preparing for CAP 10 heading. Run sap-devs mcp status and related CLI commands to reproduce the stderr warning. Done means the CAP section is handled consistently and shared commands no longer emit the unrelated unrecognized-section message.
Written by the indexing model from the issue text.
Description
When using sap-devs cli and exploring different commands, I noticed that some commands leak unrecognized section error.
For example, sap-devs mcp status shows sap-devs: pack "cap": unrecognized section "Preparing for CAP 10 (June 2026)"
How is it related exactly to my cli command?
AI response:
It has nothing to do with mcp status specifically — that command just happens to trigger the shared content-loading path, and the warning is a content lint check that fires there.
The chain
-
Nearly every
sap-devscommand (including allmcpsubcommands) constructs aContentLoaderand callsLoadPacks(). Pack loading is shared plumbing, not command-specific. -
loadPack([internal/content/pack.go:395-398](internal/content/pack.go)) reads each pack'scontext.md. For thecappack that'scontent/packs/cap/context.md. -
Unless it's the sync-expanded variant, it calls
ValidateContextSections(pack.ID, data). -
ValidateContextSections([internal/content/sections.go:19-44](internal/content/sections.go)) regex-scans every###(H3) heading and checks it against a hardcoded allow-list:Overview, Key Concepts, Best Practices, Anti-patterns, Code Examples -
content/packs/cap/context.md:41has### Preparing for CAP 10 (June 2026), which isn't on that list → it prints to stderr:sap-devs: pack "cap": unrecognized section "Preparing for CAP 10 (June 2026)"
What it means
- Non-fatal. It's a lint warning on stderr. The pack still loads;
ParseVerbositySectionsruns regardless, so that CAP 10 content is still parsed and injected (it's the same block that appears in your globalCLAUDE.md). - It's a bug in the CLI/content, not your usage. Someone added the CAP 10 section to
cap/context.mdbut never updatedRecognizedContextSectionsinsections.go. The two are out of sync. - It "leaks" everywhere because the warning has no verbosity gate and goes to stderr, so it interleaves with whatever command you ran when packs load. You'd see the same line from
tip,resources,inject --dry-run, etc.
Working around it
- Cosmetic: redirect stderr, e.g.
sap-devs mcp status 2>/dev/null. - Real fix (upstream): add the heading to
RecognizedContextSections, or demote it to####in the pack — H4 headings aren't validated. Editing the pack locally isn't durable sincesap-devs syncoverwrites~/.cache/sap-devs/official/.
- Dominant language
- Go
- Stars
- 22
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SAP-samples/sap-devs-cli
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 38/100
SAP-samples/sap-devs-cli#32 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
SAP-samples/sap-devs-cli#31 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
SAP-samples/sap-devs-cli#29 ·
All issues in SAP-samples/sap-devs-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·