name: Skill drift # Fences every agent integration's generated output against what is # checked in — across all platforms (not Claude-only), on every PR (not # release-only). Two complementary checks run: # # 1. The all-platform render golden (go test) byte-compares every # adapter's rendered MCP config / instructions / hooks / routing # blocks against committed goldens. # 2. A structural --check that every adapter still emits a gortex # registration. # # Both build the pure-Go CLI (no -tags llama), so the gate runs on a # stock runner. When a check fails on an intended change, regenerate and # commit the goldens: # go test ./cmd/gortex -run TestAgentsRenderGolden -update-agent-render on: pull_request: branches: [main] paths: - 'internal/agents/**' - 'internal/hooks/**' - 'internal/mcp/**' - 'cmd/gortex/**' - '.github/workflows/skill-drift.yml' workflow_dispatch: jobs: skill-drift: runs-on: ubuntu-latest steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6 with: go-version-file: go.mod - name: Build CLI run: go build -o gortex ./cmd/gortex/ - name: All-platform render golden run: go test ./cmd/gortex -run TestAgentsRenderGolden -count=1 - name: All-platform render structural check run: ./gortex agents render --check