Problem/Motivation

The ai_context module caps published global context items at 3 by default and rejects saves over the cap. Varbase ships 3 starter global items (Brand & Identity, Editorial Rules, AI Safety Guardrails) and the Varbase AI Figma stack seeds 4 more Figma rule items. Anything past the cap is silently dropped from context selection, so agents lose part of the shipped guidance.

Proposed resolution

Add a config action to the recipe that raises ai_context.settings: max_global_items to 10, so every Varbase and Figma context item stays selected, with headroom for site-specific items.

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ➖ Review with the product owner
  • ✅ Update Release Notes
  • ✅ Release varbase_ai_context-1.0.0-beta3

User interface changes

None.

API changes

None.

Data model changes

ai_context.settings: max_global_items set to 10 at apply.

Release notes snippet

The recipe now raises the AI Context global items cap to 10 so all Varbase starter and Figma context items remain part of context selection.

AI usage disclosure: drafted with AI (Claude) assistance, reviewed and tested by Rajab Natshah, per the Drupal AI policy.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed c530388e on 1.0.x
    fix: #3613294 Raise the AI Context global items cap so all Varbase and...
rajab natshah’s picture

Assigned: Unassigned » josebc
Issue summary: View changes
Status: Active » Needs review
Issue tags: +varbase_ai_context-1.0.0-beta3
rajab natshah’s picture

Assigned: josebc » mohammed j. razem
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Issue summary: View changes
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rajab natshah’s picture

Issue tags: +varbase-11.0.0-rc1

✅ Released varbase-11.0.0-rc1