From f76edbf2acfd371fc2d997065e873f3d35212629 Mon Sep 17 00:00:00 2001 From: Gajesh Naik <26431906+Gajesh2007@users.noreply.github.com> Date: Thu, 10 Sep 2026 14:33:14 -0700 Subject: [PATCH 1/2] ci: remove automated threat model review --- .github/workflows/threat-model-review.yml | 88 ----------------------- AGENTS.md | 2 +- 2 files changed, 1 insertion(+), 89 deletions(-) delete mode 100644 .github/workflows/threat-model-review.yml diff --git a/.github/workflows/threat-model-review.yml b/.github/workflows/threat-model-review.yml deleted file mode 100644 index 3fb7e84103..0000000000 --- a/.github/workflows/threat-model-review.yml +++ /dev/null @@ -1,88 +0,0 @@ -name: Threat Model Review - -on: - pull_request: - types: [opened, synchronize, reopened] - branches: [master, main] - -permissions: - contents: read - pull-requests: write - -jobs: - threat-model-review: - name: Threat Model Review - runs-on: blacksmith-4vcpu-ubuntu-2404 - - steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - # Depth 2 so the PR merge commit's first parent (the base tip) is - # available for the local-diff fallback below. - fetch-depth: 2 - - - name: Get PR diff - env: - GH_TOKEN: ${{ github.token }} - run: | - # The API diff 406s on PRs over 20k lines ("diff exceeded the - # maximum number of lines") — fall back to diffing the checked-out - # merge commit against its first parent (the base branch tip): - # the same delta, no size ceiling. The review script truncates - # per-file/total diff content itself, so a huge diff is safe. - if ! gh pr diff ${{ github.event.pull_request.number }} > /tmp/pr.diff; then - echo "gh pr diff failed (likely >20k lines); using local git diff fallback" - git diff HEAD^1 HEAD > /tmp/pr.diff - fi - echo "Diff size: $(wc -c < /tmp/pr.diff) bytes" - - - name: Install Python dependencies - run: pip install "anthropic>=0.50.0" pyyaml --quiet - - - name: Run threat model review - env: - ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} - run: | - python3 .github/scripts/threat-model-review.py \ - --threat-model docs/threat-model.yaml \ - --diff /tmp/pr.diff \ - --output /tmp/review.md - echo "Review size: $(wc -c < /tmp/review.md) bytes" - - - name: Post or update PR comment - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 - with: - script: | - const fs = require('fs'); - const marker = ''; - const body = fs.readFileSync('/tmp/review.md', 'utf8'); - - const { data: comments } = await github.rest.issues.listComments({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - per_page: 100, - }); - - const existing = comments.find( - c => c.user.login === 'github-actions[bot]' && c.body.includes(marker) - ); - - if (existing) { - await github.rest.issues.updateComment({ - owner: context.repo.owner, - repo: context.repo.repo, - comment_id: existing.id, - body, - }); - core.info(`Updated existing comment ${existing.id}`); - } else { - const { data: created } = await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - body, - }); - core.info(`Created new comment ${created.id}`); - } diff --git a/AGENTS.md b/AGENTS.md index 8178ada020..629768b75a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -98,7 +98,7 @@ deploy/ infra config: gcp/ (Cloud Build + VM bootstrap), environme docs/ how-tos, runbooks, reference, architecture, design records, dated reports (map: docs/README.md · rules + freshness stamps: docs/AGENTS.md · lint: make docs-check) .github/workflows/ CI (ci.yml), integration tests (integration.yml), Swift release (release-swift.yml), - model registration (register-model.yml), threat model review (threat-model-review.yml) + model registration (register-model.yml) ``` ## Current Surface Area From 699d0b14ab272a48dd45965fc14014d9de99ec47 Mon Sep 17 00:00:00 2001 From: Gajesh Naik <26431906+Gajesh2007@users.noreply.github.com> Date: Thu, 10 Sep 2026 14:48:59 -0700 Subject: [PATCH 2/2] docs: remove stale threat model CI references --- docs/README.md | 4 ++-- docs/developer/test.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/README.md b/docs/README.md index 7ab88c8a65..c5cccbd2e4 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ # Darkbloom documentation -> Last updated: 2026-09-07 · commit `5ce1d0cd0` +> Last updated: 2026-09-10 · commit `f76edbf2a` > Darkbloom is a decentralized private-inference network: an OpenAI- and > Anthropic-compatible HTTP API served by a Go coordinator that routes each @@ -56,7 +56,7 @@ - [`consumer/privacy-expectations.md`](consumer/privacy-expectations.md): what a consumer can and cannot assume, in plain terms. - [`consumer/verification.md`](consumer/verification.md): how to check a provider's attestation from the API. - [`provider/attestation.md`](provider/attestation.md): reach and keep `hardware` trust — enrol, approve the MDM profile, confirm posture; what `darkbloom status` shows. -- [`threat-model.yaml`](threat-model.yaml): machine-readable threat model reviewed by CI on security-relevant PRs. +- [`threat-model.yaml`](threat-model.yaml): machine-readable threat model. ## Reference (look up, do not read) diff --git a/docs/developer/test.md b/docs/developer/test.md index a024583d92..7e14b36e9d 100644 --- a/docs/developer/test.md +++ b/docs/developer/test.md @@ -1,6 +1,6 @@ # Test -> Last updated: 2026-09-09 · commit `1c74d7a17` +> Last updated: 2026-09-10 · commit `f76edbf2a` How to run the unit tests for each component, the end-to-end suite that boots a real coordinator + Swift provider against ephemeral Postgres, and the docs @@ -1098,7 +1098,7 @@ token IDs are accepted. | [`.github/workflows/release-swift.yml`](../../.github/workflows/release-swift.yml) | tag `v*`, manual | Provider release; see [`../operations/provider-release.md`](../operations/provider-release.md) | | [`.github/workflows/provider-signing-validation.yml`](../../.github/workflows/provider-signing-validation.yml) | manual only | Build an exact signed source revision, validate Developer ID signing/provisioning/notarization in a separate job, and retain an Actions artifact; no GitHub environment, deployment, release registration or model execution | | [`.github/workflows/register-model.yml`](../../.github/workflows/register-model.yml) | manual | `POST /v1/admin/models/register`; see [`../operations/model-migration.md`](../operations/model-migration.md) | -| `.github/workflows/threat-model-review.yml`, `.github/workflows/claude.yml`, `.github/workflows/codex.yml` | PR / comment | Review automation; not test gates | +| `.github/workflows/claude.yml`, `.github/workflows/codex.yml` | PR / comment | Review automation; not test gates | ## Verify