diff --git a/.crumb b/.crumb index 0d2a5be..cd5f3e2 100644 --- a/.crumb +++ b/.crumb @@ -46,14 +46,14 @@ } ], "children_root": "sha256:673c78f22bc9677db11d9ce2bbe7ae46a1d5c360b8fc0d2f411f96de87a06f15", - "compiled_at": "2026-10-18T11:43:17Z", + "compiled_at": "2026-10-18T21:07:34Z", "compiler": "crumb-compile/1", - "digest": "sha256:2edf3698ba54a6102066312b8c84158cb93c873a3608310654b64c7050b42cfc", + "digest": "sha256:6971211d1a4a25de4d5951b2b49830b88015b2402fdc1969d4c9fc79168083ea", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 95, - "generated_at_commit": "04c92119d596f6356a7aecc5f217bfdf8d5b28f9", - "source_tree": "sha256:81e69455ff3a4bedee19f578124aaf824ee3d395a4a46e92d712cbace809c94b" + "files": 93, + "generated_at_commit": "6bddcc16c94b0755b3749b5b1f4b375bf166db37", + "source_tree": "sha256:af1e18216121e1785052b9fc22656a4e3faaa73aae7dd2437bb55c6948394a44" }, "owner_lane": "", "seed": { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index bd65504..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,75 +0,0 @@ -name: Sovereign CI - -on: - # Retired from pull requests and pushes on 2026-10-16 (ADR 0033 Decision 11, phase 3): the Spark - # runs these gates (tests/gates/) and the required AIEN Verification check verifies its signed - # bundle. Kept as a manual trigger so a hosted run is still possible when needed. - workflow_dispatch: - -permissions: - contents: read - -jobs: - test: - name: Test & Invariant Verification - runs-on: ubuntu-latest - steps: - - name: Checkout Aegis Runtime Source - uses: actions/checkout@v4 - with: - path: aegis-runtime - - - name: Checkout AIEN Protocols Dependency - uses: actions/checkout@v4 - with: - repository: aien-dev/aien-protocols - path: aien-protocols - - - name: Checkout AIEN Sovereign Core Dependency - uses: actions/checkout@v4 - with: - repository: aien-dev/aien-sovereign-core - path: aien-sovereign-core - - - name: Install Stable Rust Toolchain - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt, clippy - - - name: Verify Code Formatting - working-directory: aegis-runtime - run: cargo fmt --all -- --check - - - name: Cargo Check - working-directory: aegis-runtime - run: cargo check --all-targets - - - name: Cargo Clippy Invariant - working-directory: aegis-runtime - run: cargo clippy --all-targets -- -D warnings - - - name: Run Workspace Unit and Integration Tests - working-directory: aegis-runtime - run: cargo test --verbose -- --test-threads=1 - - - name: Enforce Zero Disk Secrets Invariant - working-directory: aegis-runtime - run: | - echo "Auditing repository for prohibited plaintext secret files..." - if find . -maxdepth 4 -name ".env*" -not -path "*/.git/*" -not -path "*/target/*" | grep -q .; then - echo "::error::Prohibited plaintext .env file found. Use an approved AIEN SecretProvider." - exit 1 - fi - echo "Zero plaintext .env files verified." - - - name: Enforce Sovereign Voice and Anti-Slop Invariant - working-directory: aegis-runtime - run: | - echo "Auditing repository for em dashes, en dashes, and formulaic tropes..." - BAD_CHARS=$(grep -rnE --exclude-dir=target --exclude-dir=.git --exclude="*.rs" --exclude="*.json" --exclude="*.safetensors" "—|–" src/ tests/ docs/ README.md || true) - if [ -n "$BAD_CHARS" ]; then - echo "::error::Em dashes or en dashes detected:" - echo "$BAD_CHARS" - exit 1 - fi - echo "Sovereign voice compliance verified." diff --git a/.github/workflows/sovereign-reviewer.yml b/.github/workflows/sovereign-reviewer.yml deleted file mode 100644 index 0150c06..0000000 --- a/.github/workflows/sovereign-reviewer.yml +++ /dev/null @@ -1,220 +0,0 @@ -name: Sovereign Gatekeeper & Automated Reviewer - -"on": - pull_request_target: - types: [opened, synchronize] - issues: - types: [opened] - issue_comment: - types: [created] - -permissions: - pull-requests: write - issues: write - contents: read - -jobs: - pr-reviewer: - if: github.event_name == 'pull_request_target' - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Checkout Sovereign Inquisitor Core - uses: actions/checkout@v4 - with: - repository: aien-dev/aien-sovereign-core - path: sovereign-core - - - name: Checkout Sibling Protocols Dependency - uses: actions/checkout@v4 - with: - repository: aien-dev/aien-protocols - path: aien-protocols - - - name: Link Sovereign Core Workspace - run: ln -s "$GITHUB_WORKSPACE/sovereign-core" "$GITHUB_WORKSPACE/../aien-sovereign-core" - - - name: Build Sovereign Inquisitor - run: cargo build --release --manifest-path sovereign-core/Cargo.toml -p spark-inquisitor - - - - name: Fetch PR Diff - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_NUMBER: ${{ github.event.pull_request.number }} - run: | - gh pr diff "$PR_NUMBER" > pr.diff - - - name: Execute Sovereign Code Review - id: review - continue-on-error: true - env: - PR_AUTHOR: ${{ github.event.pull_request.user.login }} - PR_NUMBER: ${{ github.event.pull_request.number }} - PR_TITLE: ${{ github.event.pull_request.title }} - run: | - ./sovereign-core/target/release/spark-inquisitor review \ - --author "$PR_AUTHOR" \ - --pr "$PR_NUMBER" \ - --title "$PR_TITLE" \ - --diff pr.diff \ - --output comment.md \ - --output-labels labels.txt - - - name: Post PR Review Comment - if: always() && steps.review.conclusion != 'skipped' - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_NUMBER: ${{ github.event.pull_request.number }} - run: | - if [ -f comment.md ]; then - gh pr comment "$PR_NUMBER" --body-file comment.md - fi - - - name: Apply Review Labels - if: always() && steps.review.conclusion != 'skipped' - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_NUMBER: ${{ github.event.pull_request.number }} - run: | - if [ -f labels.txt ]; then - LABELS=$(cat labels.txt) - if [ -n "$LABELS" ]; then - gh pr edit "$PR_NUMBER" --add-label "$LABELS" || true - fi - fi - - - name: Verify Audit Invariants - env: - REVIEW_OUTCOME: ${{ steps.review.outcome }} - run: | - if [ "$REVIEW_OUTCOME" != "success" ]; then - echo "Constitutional diff audit detected violations. See PR comment for details." - exit 1 - fi - - issue-triage: - if: github.event_name == 'issues' && github.event.action == 'opened' - runs-on: ubuntu-latest - steps: - - name: Checkout Sovereign Inquisitor Core - uses: actions/checkout@v4 - with: - repository: aien-dev/aien-sovereign-core - - - name: Checkout Sibling Protocols Dependency - uses: actions/checkout@v4 - with: - repository: aien-dev/aien-protocols - path: aien-protocols - - - name: Setup Sibling Dependencies - run: | - mkdir -p ../aien-protocols - cp -r aien-protocols/* ../aien-protocols/ - - - name: Build Sovereign Inquisitor - run: cargo build --release -p spark-inquisitor - - - name: Extract Issue Payload Safely - run: | - jq -r '.issue.body // ""' "$GITHUB_EVENT_PATH" > issue_body.txt - - - name: Execute Sovereign Issue Triage - env: - ISSUE_AUTHOR: ${{ github.event.issue.user.login }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - ISSUE_TITLE: ${{ github.event.issue.title }} - run: | - ./target/release/spark-inquisitor triage-issue \ - --author "$ISSUE_AUTHOR" \ - --issue "$ISSUE_NUMBER" \ - --title "$ISSUE_TITLE" \ - --body issue_body.txt \ - --output-comment issue_reply.md \ - --output-labels issue_labels.txt - - - name: Post Issue Triage Comment - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - run: | - if [ -f issue_reply.md ]; then - gh issue comment "$ISSUE_NUMBER" --body-file issue_reply.md - fi - - - name: Apply Issue Labels - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - run: | - if [ -f issue_labels.txt ]; then - LABELS=$(cat issue_labels.txt) - if [ -n "$LABELS" ]; then - gh issue edit "$ISSUE_NUMBER" --add-label "$LABELS" || true - fi - fi - - comment-evaluator: - if: github.event_name == 'issue_comment' && github.event.action == 'created' && github.event.issue.pull_request != null && github.event.comment.user.login != 'github-actions[bot]' && github.event.comment.user.login != 'aien-dev' - runs-on: ubuntu-latest - steps: - - name: Checkout Sovereign Inquisitor Core - uses: actions/checkout@v4 - with: - repository: aien-dev/aien-sovereign-core - - - name: Checkout Sibling Protocols Dependency - uses: actions/checkout@v4 - with: - repository: aien-dev/aien-protocols - path: aien-protocols - - - name: Setup Sibling Dependencies - run: | - mkdir -p ../aien-protocols - cp -r aien-protocols/* ../aien-protocols/ - - - name: Build Sovereign Inquisitor - run: cargo build --release -p spark-inquisitor - - - name: Extract Comment Payload Safely - run: | - jq -r '.comment.body // ""' "$GITHUB_EVENT_PATH" > comment_body.txt - - - name: Evaluate Contributor Testimony - id: eval - continue-on-error: true - env: - COMMENT_AUTHOR: ${{ github.event.comment.user.login }} - run: | - ./target/release/spark-inquisitor evaluate \ - --testimony comment_body.txt \ - --author "$COMMENT_AUTHOR" \ - --output-comment verdict.md \ - --output-labels verdict_labels.txt - - - name: Post Verdict Comment - if: always() && steps.eval.conclusion != 'skipped' - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - run: | - if [ -f verdict.md ]; then - gh pr comment "$ISSUE_NUMBER" --body-file verdict.md - fi - - - name: Update PR Labels - if: always() && steps.eval.conclusion != 'skipped' - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - run: | - if [ -f verdict_labels.txt ]; then - LABELS=$(cat verdict_labels.txt) - if [ -n "$LABELS" ]; then - gh pr edit "$ISSUE_NUMBER" --add-label "$LABELS" || true - fi - fi