spark-inquisitor
Automated review gate for the AienOS project: PR code reviewer, contributor interview and issue triage.
Architecture
spark-inquisitor is a pure native compiled Rust binary that enforces the project standards (the Stapleton Doctrine; values in COVENANT.md) across GitHub repositories:
- Zero Telemetry: Flags tracking scripts, analytics SDKs, and data collection calls.
- Sovereign Voice and Anti-Slop: Flags em dashes, en dashes, and banned AI buzzwords.
- Contributor Alignment: Runs the contributor interview and checks the certification reply (zero telemetry, AGPL-3.0-or-later license and attribution preserved downstream).
- Autonomous Issue Triage: Classifies bug reports, complaints, proposals, and community inquiries.
Commands
spark-inquisitor review --author <user> --pr <num> --title <title> --diff <file>: Runs the doctrine diff audit and generates the GitHub PR review comment.spark-inquisitor triage-issue --author <user> --issue <num> --title <title> --body <file>: Analyzes issue description and outputs triage guidance with labels.spark-inquisitor evaluate --testimony <file> --author <user>: Evaluates contributor interview replies against the project standards.spark-inquisitor doctor: Runs local self-diagnostics.spark-inquisitor audit --diff <file>: Runs the same diff audit and prints a short verdict (--advisory-styleis still accepted; it is the default now).
Exit status (report format spark-inquisitor-report/2, DRA-99)
review and audit exit 1 only for blocking findings:
- a plaintext secret on an added line (AWS access key, GitHub token, private key header);
- a
.envor.env.*file anywhere in the diff; - a telemetry hook on an added line.
Style findings (em dash, en dash, banned buzzwords, antithesis tropes) are advisory. They are still listed,
under "Style advisories (non-blocking)", and a review with only style findings passes with the extra label
style-advisory. A line that holds a secret is never quoted in any finding; it is shown as
[line redacted: it contains a plaintext secret]. Report format 1 (before DRA-99) failed on every finding.
Files whose path contains spark-inquisitor or constitution.rs are not scanned for line findings, so the
pattern definitions do not flag themselves; .env file names are still checked there.
Tests: cargo test -p spark-inquisitor. The exit-status contract of a built binary is also checked by the
seeded-Omega driver om/inquisitor-exit/check.om (see its README).
This crate is existing Rust under migration: its seeded-Omega successor is Linear DRA-440 (see also
om/inquisitor-exit/README.md).