Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Policy equivalence assessment based on their execution results for the same data #1886

Closed
anvabr opened this issue Mar 8, 2023 · 0 comments
Assignees
Labels
Epic Next Phase Will be worked in Next Phase

Comments

@anvabr
Copy link
Collaborator

anvabr commented Mar 8, 2023

Problem description

Policy comparison capability in Guardian enables policy authors to compare the structure of two policies, and where the tool highlights the differences it is left to the author to draw conclusions about their significance. While this is useful in many respects there are use-cases where it would be more beneficial to assess the equivalence of policies by their effect (results of their actions) irrespective of (or additionally to) their internal structure.

Requirements

  • Introduce the capability into the Guardian codebase to easily run 'test dataset' on a policy instance such that the results of the 'run' are also captured, saved and can be compared between runs. Such test runs should not have effect on the external persistent storage (Hedera, IPFS), i.e. this should be performed in the 'test-run' mode.
  • Introduce the capability to capture the 'input' into the policy during its execution, in both the 'test-run' and the production operation mode. The 'input' should be saved into the DB, from which it can then be used for running the policy test as per above.
  • It should be possible to export saved inputs and results.

Definition of done

  • Functionality is implemented as per above
  • Documentation is updated accordingly
  • At least a single dataset is created to demonstrate the functionality on at least one demo policy

Acceptance criteria

  • Ability to capture inputs
  • Ability to run test scenarios and compare results
@prernaadev01 prernaadev01 added the Next Phase Will be worked in Next Phase label Mar 10, 2023
@anvabr anvabr changed the title Policy correctness/compatibility verification based on (test) data sets Policy equivalence assessment based on their execution results for the same data Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Next Phase Will be worked in Next Phase
Projects
None yet
Development

No branches or pull requests

3 participants