Skip to content

Fix Dojo metric counting in enrichment spec - #88

Merged
kronosapiens merged 1 commit into
mainfrom
kronosapiens/enrichment-dojo-counting
Mar 11, 2026
Merged

Fix Dojo metric counting in enrichment spec#88
kronosapiens merged 1 commit into
mainfrom
kronosapiens/enrichment-dojo-counting

Conversation

@kronosapiens

Copy link
Copy Markdown
Collaborator

Clarify enrichment spec to prevent miscounting of non-Dojo components as Dojo artifacts.

The enrichment agent was counting EGS components, Starknet contracts, and OpenZeppelin components as Dojo models/systems/events. This patch requires literal #[dojo::model], #[dojo::contract], and #[dojo::event] decorators as the sole basis for counting and explicitly excludes other frameworks. Sets counts to 0 if no Dojo decorators are found.

Fixes the Blokaz project miscounting.

Require #[dojo::model], #[dojo::contract], #[dojo::event] decorators as the sole basis for counting. Explicitly exclude EGS, Starknet, and OpenZeppelin components to prevent misattribution (fixes Blokaz miscounting).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@kronosapiens
kronosapiens merged commit 741fa9b into main Mar 11, 2026
2 checks passed
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