diff --git a/.crumb b/.crumb index c1aef8f..644da56 100644 --- a/.crumb +++ b/.crumb @@ -56,7 +56,7 @@ }, { "digest": "add2dc5b497a20c62cdbf5d033b03980eb5edbb3c6ba5e33701f32d34cac37e6", - "last_commit": "228cae8", + "last_commit": "ab6c38b", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, @@ -68,14 +68,14 @@ } ], "children_root": "sha256:b435713bf59491df3813345ecba875850fceeaee3e02cc2cb7ce182a5bd88f6b", - "compiled_at": "2026-10-18T19:27:24Z", + "compiled_at": "2026-10-18T21:07:40Z", "compiler": "crumb-compile/1", - "digest": "sha256:587a946bcd76885fa6c74d8018258c21262747d8f7f640cee16f66bb0e0d6839", + "digest": "sha256:f887e364ce7649ec261ee6d4027f86de30c4973ef451c2b5a87755a25e501b38", "evidence_files": 27, "evidence_root": "sha256:5552ba32dc3c69f7c3700b23a1a62a89d259ce203bc957986946d37e7a8b6ffd", - "files": 167, - "generated_at_commit": "f20a283067cb8fac4f28441225c0e7233dedc135", - "source_tree": "sha256:0c98dc8648390e6430ed9adc3da00115d94035227129b4dbffbb72c8e9f39f4c" + "files": 165, + "generated_at_commit": "ab6c38ba3923942d91600c0358d65479829a2d33", + "source_tree": "sha256:2e8bf47c4dbd4109dabebca9aa4bc7832ef0235def361b94f7696ebd347225d8" }, "owner_lane": "", "seed": { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 6185e73..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,56 +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 repository - uses: actions/checkout@v4 - - - name: No Python guard (fails if any Python file is tracked) - run: sh scripts/check-no-python.sh - - - name: Checkout AIEN Protocols Dependency - uses: actions/checkout@v4 - with: - repository: aien-spark/aien-protocols - path: aien-protocols - - - name: Setup Sibling Dependencies - run: | - mkdir -p ../aien-protocols - cp -r aien-protocols/* ../aien-protocols/ - - - - name: Install System Dependencies & Configure Kernel Namespaces - run: | - sudo apt-get update && sudo apt-get install -y bubblewrap - sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true - sudo chmod u+s /usr/bin/bwrap || true - - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt, clippy - - - name: Verify Code Formatting - run: cargo fmt --all -- --check - - - name: Cargo Check - run: cargo check --locked --all-targets - - - name: Pre-populate Build Jail Target Cache - run: CARGO_TARGET_DIR=/tmp/spark-rsi-target cargo build --locked --release - - - name: Run Tests - run: cargo test --locked --verbose -- --test-threads=1 diff --git a/.github/workflows/sovereign-reviewer.yml b/.github/workflows/sovereign-reviewer.yml deleted file mode 100644 index 58a7954..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-spark/aien-sovereign-core - path: sovereign-core - - - name: Checkout Sibling Protocols Dependency - uses: actions/checkout@v4 - with: - repository: aien-spark/aien-protocols - path: aien-protocols - - - name: Install System Dependencies - run: sudo apt-get update && sudo apt-get install -y bubblewrap - - - 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-spark/aien-sovereign-core - - - name: Checkout Sibling Protocols Dependency - uses: actions/checkout@v4 - with: - repository: aien-spark/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-spark/aien-sovereign-core - - - name: Checkout Sibling Protocols Dependency - uses: actions/checkout@v4 - with: - repository: aien-spark/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