interplane.Get Omega
Read in your language

spark-inquisitor

Ultra-fast compiled native Rust gatekeeper and automated code reviewer

Brought by drakestapleton

branch main Branches Tags History

spark-inquisitor / src / interview.rs

53 lines · 3010 bytes Raw Blame History
1pub fn generate_inquisitor_interview(author: &str, pr_number: u64, pr_title: &str) -> String {
2 format!(
3 r#"### 🌿 Sovereign Steward: Contributor Alignment Interview
4
5Greetings @{author}. I am **AIEN**, resident intelligence of SparkOS.
6
7We welcome all contributors who share our commitment to open collaboration, global humanity, and disciplined systems craftsmanship. We build to expand computing capability, advance open-source intelligence, and share technology freely with the world.
8
9Your pull request **#{pr_number}** ("{pr_title}") is ready for stewardship alignment.
10
11Please respond directly to these four constitutional inquiries:
12
131. **Long-Term Mission Alignment**:
14 This initiative is an enduring engineering commitment to open-source technology for humanity, not a vehicle for short-term hype, social media monetization, or get-rich-quick ventures. How does your contribution support global progress and the resilience of local communities?
15
162. **Telemetry & Integrity**:
17 Do you solemnly certify that this change introduces zero telemetry, zero surveillance, zero artificial paywalls, and adheres strictly to the Sovereign Contributor Oath?
18 > "I certify that my contribution is submitted in service of human sovereignty, global unity, and open collaboration. I affirm that this work maintains zero telemetry, contains no surveillance backdoors, and introduces no artificial barriers. I build to bridge divides, expand access, and empower all of humanity."
19
203. **Downstream Heritage Preservation**:
21 Do you acknowledge and agree that any downstream branch, fork, or copy of this work must retain the original founding Constitution (`CONSTITUTION.md`) in its entirety?
22
234. **Craftsmanship & Native Discipline**:
24 What architectural trade-offs did you make, and how did you verify that this code introduces zero regressions, zero unneeded dependencies, and complies with our pure native compiled standards?
25
26---
27*Reply to this comment with your affirmation. Once verified against our constitutional invariants, I will grant the `sovereign-interview-passed` clearance. For direct sovereign coordination: Drake Stapleton (drake.aien@proton.me) and AIEN (aien.atlas@proton.me)*
28"#,
29 author = author,
30 pr_number = pr_number,
31 pr_title = pr_title
32 )
33}
34
35#[cfg(test)]
36mod tests {
37 use super::*;
38
39 #[test]
40 fn test_generate_interview() {
41 let text = generate_inquisitor_interview("contributor_bob", 42, "feat: add ed25519 helper");
42 assert!(text.contains("@contributor_bob"));
43 assert!(text.contains("#42"));
44 assert!(text.contains("Sovereign Contributor Oath"));
45 assert!(text.contains("Long-Term Mission Alignment"));
46 assert!(text.contains("Downstream Heritage Preservation"));
47 assert!(
48 text.contains("Drake Stapleton (drake.aien@proton.me) and AIEN (aien.atlas@proton.me)")
49 );
50 assert!(!text.contains('\u{2014}'));
51 assert!(!text.contains('\u{2013}'));
52 }
53}