Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lukaszcz
Copy link
Collaborator

@lukaszcz lukaszcz commented Jul 21, 2025

@lukaszcz lukaszcz self-assigned this Jul 21, 2025
@lukaszcz lukaszcz marked this pull request as ready for review July 22, 2025 10:21
@lukaszcz lukaszcz requested review from Copilot and janmasrovira July 22, 2025 10:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces global Intent labels to replace ecosystem-local intent IDs, addressing issue #48. The change moves from a system where intents were uniquely associated with ecosystems to one where intents have global labels and classes define which intent labels they allow.

Key changes:

  • Introduction of global Intent.Label structure with global scope
  • Replacement of ecosystem-level IntentId with class-level intentLabels sets
  • Refactoring of intent-related functions to use the new label system

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
AVM/Intent/Label.lean New file defining the global Intent.Label structure
AVM/Intent.lean Refactored Intent structure to be parameterized by Intent.Label
AVM/Class/Label.lean Added intentLabels field and intentId member type
AVM/Class.lean Added intents field to Class structure
AVM/Ecosystem/Label.lean Removed IntentId and related functionality
AVM/Ecosystem.lean Removed intents field from Ecosystem structure
Apps/UniversalCounter.lean Updated to use new intent system
Apps/OwnedCounter.lean Updated to use new intent system
Applib.lean Updated noIntents macro for new system
AVM/Intent/Translation.lean Updated function signatures for new Intent parameterization
AVM/Ecosystem/Translation.lean Removed old intent logic handling
AVM/Class/Translation.lean Added new intent logic handling at class level
Comments suppressed due to low confidence (1)

@@ -0,0 +1,19 @@

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed that we sometimes have an empty line at the beginning of a file. Is that intentional?

Copy link
Collaborator Author

@lukaszcz lukaszcz Jul 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not very. It just somehow seemed to me more natural to put an empty line before imports, but we can agree on not doing it if you prefer.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't care much, but if we want to be uniform, I'd prefer no empty line

@janmasrovira janmasrovira merged commit 0407f4f into main Jul 22, 2025
2 checks passed
@janmasrovira janmasrovira deleted the fix-intent-ids branch July 22, 2025 21:01
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.

Refactor IntentId to move it outside Label

3 participants