Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
yml 99 lines 3.56 KB
Raw
1 name: Agent Substrate
2
3 # Guards the repo-level AI-agent guidance — the files coding agents read —
4 # so it cannot silently drift from reality:
5 #
6 # * `bun run validate:agent-skills` — SKILL.md frontmatter and reference links,
7 # the .agents/skills <-> .claude/skills compatibility symlink, required
8 # nested AGENTS.md files, stale guidance references, and every pnpm/make/
9 # nox command mentioned in guidance checked against its real definition.
10 # * `bun run validate:skill-routing` — deterministic routing smoke test: each
11 # skill keeps a probe asserting it is the unique top match for a
12 # representative task, so description edits cannot silently break routing.
13 #
14 # `validate:cli-skills` checks repo-linked examples and exercises the selected
15 # CLI invocation contracts, including native Effect client requests.
16 #
17 # These guidance checks run nowhere else, so this workflow is their only enforcement
18 # point. It runs on every push and PR with no path filters: the
19 # validate:agent-skills stale-guidance walk scans every text file in the
20 # repo, so any change can affect the result. Both scripts are
21 # Bun TypeScript programs using the repository's existing dependencies.
22
23 on:
24 push:
25 branches: [master, next]
26 pull_request:
27 branches: [master, next]
28
29 concurrency:
30 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
31 cancel-in-progress: ${{ github.event_name == 'pull_request' }}
32
33 permissions:
34 contents: read
35
36 jobs:
37 antislop:
38 name: Anti-slop (TypeScript, Python, YAML)
39 runs-on: ubuntu-latest
40 steps:
41 - name: Checkout Code
42 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
43
44 - name: Setup Node.js, pnpm, Bun
45 uses: ./.github/actions/setup-node-pnpm-bun
46 with:
47 cache-save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/next' }}
48
49 - name: Install dependencies
50 run: pnpm install --frozen-lockfile --ignore-scripts
51
52 - name: Test anti-slop rules and enforcement
53 run: pnpm test:antislop
54
55 - name: Typecheck Effect lint rules
56 run: pnpm typecheck:effect-rules
57
58 - name: Reject new anti-slop findings
59 run: pnpm lint:antislop
60
61 validate:
62 name: Validate agent guidance
63 runs-on: ubuntu-latest
64
65 steps:
66 - name: Checkout Code
67 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
68
69 - name: Setup Node.js, pnpm, Bun
70 uses: ./.github/actions/setup-node-pnpm-bun
71 with:
72 # Only push runs on next save caches: PR-scoped caches are invisible
73 # to other branches, so saving them costs post-job time and evicts
74 # reusable default-branch caches from the 10 GB repo quota.
75 cache-save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/next' }}
76
77 - name: Install dependencies
78 run: pnpm install --frozen-lockfile
79
80 - name: Validate agent skills and guidance invariants
81 run: bun run validate:agent-skills
82
83 - name: Validate skill routing
84 run: bun run validate:skill-routing
85
86 - name: Certify CLI skill examples and invocation contracts
87 run: bun run validate:cli-skills
88
89 - name: Typecheck agent tooling
90 run: bun run typecheck:agent-workflow
91
92 - name: Verify resumable task and evidence contracts
93 run: bun run test:agent-workflow
94
95 - name: Verify issue triage security boundary
96 run: pnpm test:issue-triage
97
98 - name: Verify API client dependency reconciliation
99 run: bun test test/composio-client-update.test.ts