Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 123 additions & 0 deletions .github/workflows/wimse-cta-mcp-guard-conformance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# WIMSE CTA MCP Guard conformance workflow.
#
# Two jobs:
# floating installs the integration against its declared lower bounds, so it
# resolves the latest compatible releases, as drift detection.
# fixed installs the exact hash-locked package set that reproduces the
# tested_against result, then asserts the three load-bearing versions
# and installs the integration with --no-deps.
# Both run the integration tests with line and branch coverage required at 100%
# for the two modules, emit a Level 0 Trust Record from a CTA-gated call, and
# verify it with trace-tests. The emitted record is JSON.
# Lives at repo root because GitHub Actions only discovers workflows there.
name: wimse-cta-mcp-guard conformance
on:
push:
paths:
- "integrations/wimse-cta-mcp-guard/**"
- "requirements/wimse-cta-mcp-guard-fixed.*"
- ".github/workflows/wimse-cta-mcp-guard-conformance.yml"
pull_request:
paths:
- "integrations/wimse-cta-mcp-guard/**"
- "requirements/wimse-cta-mcp-guard-fixed.*"
- ".github/workflows/wimse-cta-mcp-guard-conformance.yml"
schedule:
- cron: "0 6 * * 1" # weekly: catch drift against the latest released packages
workflow_dispatch:

permissions:
contents: read

jobs:
floating:
name: floating (latest releases, drift detection)
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python: ["3.11", "3.12", "3.13"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ matrix.python }}
- name: Install this integration (declared lower bounds)
run: pip install -e "integrations/wimse-cta-mcp-guard[test,cov]"
- name: Check dependency consistency
run: python -m pip check
- name: Integration tests
run: >-
pytest integrations/wimse-cta-mcp-guard/tests -q
--cov=cta_trace_guard --cov=cta_trace_verify --cov-branch --cov-fail-under=100
- name: Emit a record from a CTA-gated call
run: python integrations/wimse-cta-mcp-guard/examples/emit_record.py --out trust-record.json
- name: TRACE conformance
run: trace-tests verify --record trust-record.json --level 0
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: floating-${{ matrix.os }}-py${{ matrix.python }}
path: trust-record.json

fixed:
name: fixed (tested_against versions)
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python: ["3.11", "3.12", "3.13"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ matrix.python }}
- name: Install the package set that reproduces the tested_against result
run: pip install --require-hashes -r requirements/wimse-cta-mcp-guard-fixed.txt
- name: Pinned versions match the three anchors and integration.yaml
run: |
python - <<'PY'
import re, sys
from importlib.metadata import version
want = {
"agentrust-trace": "0.11.0",
"agentrust-trace-adapters": "0.2.0",
"agentrust-trace-tests": "0.6.2",
}
y = open("integrations/wimse-cta-mcp-guard/integration.yaml").read()
declared = dict(re.findall(r'^ (agentrust-trace|agentrust-trace-tests): "([^"]+)"', y, re.M))
have = {k: version(k) for k in want}
print("want", want)
print("have", have)
print("integration.yaml", declared)
ok = (
have == want
and declared.get("agentrust-trace") == want["agentrust-trace"]
and declared.get("agentrust-trace-tests") == want["agentrust-trace-tests"]
)
sys.exit(0 if ok else 1)
PY
- name: Install this integration
# --no-deps: every runtime and test dependency came from the lock above.
run: pip install --no-deps -e integrations/wimse-cta-mcp-guard
- name: Check dependency consistency
run: python -m pip check
- name: Integration tests
run: >-
pytest integrations/wimse-cta-mcp-guard/tests -q
--cov=cta_trace_guard --cov=cta_trace_verify --cov-branch --cov-fail-under=100
- name: Emit a record from a CTA-gated call
run: python integrations/wimse-cta-mcp-guard/examples/emit_record.py --out trust-record.json
- name: TRACE conformance
run: trace-tests verify --record trust-record.json --level 0
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: fixed-${{ matrix.os }}-py${{ matrix.python }}
path: trust-record.json
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ TRACE only works as a standard if it is genuinely neutral. Integrations are list
| [WCM Key Release to TRACE](integrations/wcm-trace/) | agentrust-io | wcm, trace | community |
| [WCM Triton Repository Staging](integrations/wcm-triton/) | agentrust-io | wcm | verified |
| [WCM Serving Guard for vLLM](integrations/wcm-vllm/) | agentrust-io | wcm | verified |
| [WIMSE CTA MCP Guard](integrations/wimse-cta-mcp-guard/) | Agentic Security IETF Corpus | trace | community |
| [xChk registry](integrations/xchk-registry/) | xChk | trace | community |
| [agentrust-codex](plugins/agentrust-codex/) | agentrust-io | agent-manifest, trace | community |
| [scheduled-agents](scheduled-agents/) | agentrust-io | trace | community |
Expand Down
Loading
Loading