a06f331eb8
CI / benchmark (push) Has been skipped
install-script / posix-syntax (push) Successful in 6m1s
CI / build-onnx (push) Failing after 6m43s
init-smoke / dry-run (push) Failing after 15m57s
security / govulncheck (push) Has been cancelled
security / trivy-fs (push) Has been cancelled
CI / test (1.26, ubuntu-latest) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
CI / test (1.26, macos-latest) (push) Has been cancelled
CI / build-windows (push) Has been cancelled
CI / lint (push) Has been cancelled
install-script / powershell-syntax (push) Has been cancelled
install-script / install (macos-14) (push) Has been cancelled
install-script / install (ubuntu-latest) (push) Has been cancelled
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
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
|