microsoft / microsoft/regorus

Complete top-down evaluation implementation

Open
#178 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature
Dominant language
Rust
Stars
346
Forks
75
Avg merge
1d 3h
Merged PRs (30d)
15

Description

The following does not pass with top-down evaluation:

package test
import future.keywords

p[q].r contains s {  # Rule with prefix and general ref
   x := ["a", "b", "c"]
   q := x[_]
   s := x[_]
   q != s
}
p.b.r contains "foo" # Rule with prefix overlapping with above rule

Query: data.test.p.b

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided Rego snippet and querying data.test.p.b, then locate the top-down evaluation implementation in the repository. Compare the result with the expected overlapping-prefix and general-reference behavior; done means this query passes with the shown rules.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.