Complete top-down evaluation implementation

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

Description

enhancement feature

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

Dominant language
Rust
Stars
375
Forks
81
Avg merge
1d 11h
Merged PRs (30d)
78

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

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.

More from microsoft/regorus

All issues in microsoft/regorus

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.