Skip to content

fix(recipes): Trace @mentions from bundle.md markdown body in validation recipe - #58

Merged
Brian Krabach (bkrabach) merged 1 commit into
mainfrom
fix/recipe-bundle-markdown-mentions
Feb 3, 2026
Merged

fix(recipes): Trace @mentions from bundle.md markdown body in validation recipe#58
Brian Krabach (bkrabach) merged 1 commit into
mainfrom
fix/recipe-bundle-markdown-mentions

Conversation

@bkrabach

Copy link
Copy Markdown
Collaborator

Summary

  • Critical bug fix: v1.1.0 only measured context.include files, missing @mentions from bundle.md's markdown body
  • Impact: Foundation bundle reported 11K tokens when TRUE load was ~36K tokens
  • Root cause: ISSUE_HANDLING.md (11K tokens) loaded via bundle.md → @common-system-base.md → @ISSUE_HANDLING.md chain was never detected

Changes in v1.2.0

Feature v1.1.0 v1.2.0
context.include from behaviors
bundle.md markdown @mentions
Recursive @mention cascade ✅ (depth 3)
Deduplication Partial ✅ Complete
source_breakdown in output

Test Results

Metric v1.1.0 v1.2.0
Foundation total tokens 11,112 35,849
ISSUE_HANDLING.md detected ❌ No ✅ Yes (11,101 tokens)
Verdict PASS WITH WARNINGS FAIL (correct!)

Test plan

  • Ran recipe against foundation bundle
  • Verified ISSUE_HANDLING.md now detected
  • Verified total token count matches manual audit methodology
  • Validated with result-validator agent

🤖 Generated with Amplifier

…ion recipe

v1.1.0 only measured context.include files from behaviors, completely missing
@mentions in bundle.md's markdown body and their cascading chains. This caused
foundation bundle to report 11K tokens when the TRUE load was ~36K tokens.

v1.2.0 fixes this by:
- Extracting @mentions from bundle.md markdown instruction text
- Recursively following @mention cascades (depth 3)
- Proper deduplication so files are counted only once
- New source_breakdown showing context_include vs bundle_markdown_mentions vs cascading

Critical bug: ISSUE_HANDLING.md (11K tokens) was never detected because it's
loaded via bundle.md → @common-system-base.md → @ISSUE_HANDLING.md chain.

🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
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