geval
Copilot instructions44 starsChanged 9 months agoMITView on GitHub
Geval is a decision orchestration and reconciliation tool for AI systems. It consumes signals (JSON) and policy (YAML), evaluates all rules (unique priorities; 1 = highest), surfaces every match, applies the best-priority winner per policy, and merges policies/contracts with worst_case (BLOCK > REQUIRE_APPROVAL > PASS). It does not run evals, call APIs, or compute metrics—it only reconciles your rules against your signals. Core Philosophy: Geval has no “brain.” You provide signals and rules; Geval applies the rules and returns one…
The file
We split this copilot-instructions.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Run from repo root: ./geval/target/release/geval demo or geval check --signals ...
- Distinctive: line 38
Use these in scripts and GitHub Actions to gate merges or deployments.
- Very specific: line 49
Rust: Use cargo fmt and cargo clippy.
- Very specific: line 55
Read geval/docs/ for how users install, run, and integrate Geval (binary only.
- Distinctive: line 56
Prefer clarity and determinism.
≈ “Common” is an estimate: at least 1 in 5 of the 3,950 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Geval - AI Coding Instructions
Project Overview
Geval is a decision orchestration and reconciliation tool for AI systems. It consumes signals (JSON) and policy (YAML), evaluates all rules (unique priorities; 1 = highest), surfaces every match, applies the best-priority winner per policy, and merges policies/contracts with worst_case (BLOCK > REQUIRE_APPROVAL > PASS). It does not run evals, call APIs, or compute metrics—it only reconciles your rules against your signals.
Core Philosophy: Geval has no “brain.” You provide signals and rules; Geval applies the rules and returns one outcome. Same inputs + same policy = same outcome.
Repository Structure
- geval/ – Rust crate (the only product)
- src/ – CLI and engine (commands, evaluator, signals loader, policy parser)
- docs/ – User docs (installation, GitHub Actions, signals and rules, auditing)
- examples/ – Sample
signals.jsonandpolicy.yamlfor local/CI use - scripts/ – e.g.
generate_signals.pyfor CI demo
- .github/workflows/ – CI (build + test Rust) and release (build binary on tag push)
- Root: README, CONTRIBUTING, LICENSE, CODE_OF_CONDUCT
There are no npm packages, no TypeScript, no Turborepo. The artifact is a single Rust binary distributed via GitHub Releases.
Build and Test
- Build:
cargo build --release --manifest-path geval/Cargo.toml - Test:
cargo test --manifest-path geval/Cargo.toml - Binary:
geval/target/release/geval(orgeval.exeon Windows)
Run from repo root: ./geval/target/release/geval demo or geval check --signals ... --policy ... once the binary is on PATH.
CLI and Exit Codes
- Commands:
geval demo,geval init,geval check,geval explain,geval approve/geval reject(seegeval --help). - Exit codes (for CI):
0– PASS1– REQUIRE_APPROVAL2– BLOCK- Non-zero on error (e.g. missing file, invalid JSON/YAML).
Use these in scripts and GitHub Actions to gate merges or deployments.
Data Flow
- Inputs:
signals.json(scores, presence-only flags, or mix) andpolicy.yaml(ordered rules withwhen/then). - Output: Decision (PASS / REQUIRE_APPROVAL / BLOCK), optional report via
geval explain, and optional artifacts under.geval/decisions/(with policy/signals hashes for auditing).
Policy is YAML with rules keyed by environment; each rule has conditions (signals, thresholds) and an action. See geval/docs/signals-and-rules.md for signal shapes and rule syntax.
Conventions
- Rust: Use
cargo fmtandcargo clippy. Follow existing style ingeval/src/. - Docs: User-facing text lives in
geval/docs/. Keep README and installation/CI docs in sync with CLI behavior. - CI:
.github/workflows/geval.ymlbuilds and tests the crate and runs a sample check;.github/workflows/release-geval.ymlbuilds the binary on tag push and publishes to GitHub Releases. No Node/npm in CI.
When in Doubt
- Read geval/docs/ for how users install, run, and integrate Geval (binary only; no npm/pip).
- Prefer clarity and determinism; avoid extra dependencies or runtime environments beyond the single binary.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

