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

Skip to content

Conversation

@lukaszcz
Copy link
Collaborator

The ecosystem and class logics were confusing and overcomplicated, duplicating functionality. Also, the class invariant was not checked when the received message corresponded to a multi-method.

Now, the RLs for objects are again associated with the class, but the check also works for multi-methods in the same ecosystem.

@lukaszcz lukaszcz self-assigned this Sep 23, 2025
@lukaszcz lukaszcz requested review from Copilot and janmasrovira and removed request for Copilot September 23, 2025 10:26
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 refactors object resource logic by moving logic references from ecosystem-level to class-level, simplifying the architecture and ensuring class invariants are checked for multi-method messages. The changes consolidate duplicated functionality between class and ecosystem logics.

  • Moved logic references from ecosystem labels to class labels
  • Updated object resource conversion to use class-based logic references
  • Removed ecosystem-level logic functions and consolidated logic handling at the class level

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
AVM/Object.lean Updated object-to-resource conversion to use class logic references
AVM/Logic.lean Modified resource value comparison to use class-based logic references
AVM/Ecosystem/Label/Base.lean Removed ecosystem-level logic reference function
AVM/Class/Translation/Logics.lean Refactored class logic to handle multi-methods and removed ecosystem logic
AVM/Class/Label.lean Added class-level logic reference function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@lukaszcz lukaszcz changed the title Refactor object resource logics refactor: object resource logics Sep 23, 2025
@lukaszcz lukaszcz merged commit 1cd8063 into main Sep 23, 2025
1 check passed
@lukaszcz lukaszcz deleted the refactor-class-logic branch September 23, 2025 10:42
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.

3 participants