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
42 changes: 42 additions & 0 deletions .github/workflows/delimit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Delimit governance

on:
pull_request:
paths:
- 'packages/sdk/src/schema/**'
- 'schemas/**'
- '.github/workflows/delimit.yml'
workflow_dispatch:

permissions:
contents: read
pull-requests: write

jobs:
delimit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: '20'

- uses: pnpm/action-setup@v3
with:
version: 9

- name: Install deps
run: pnpm install --frozen-lockfile

# Pin to feature-branch commit during testing. Will switch to
# delimit-ai/delimit-action@v1 once v1.9.0 ships.
- name: Delimit governance check
uses: delimit-ai/delimit-action@1a19928543801504c4fe29a5cff24280d7da88c6
with:
spec: schemas/v1/agent.schema.json
mode: advisory
generator_command: pnpm run schema:export
generator_artifact: schemas/v1/agent.schema.json
2 changes: 1 addition & 1 deletion packages/sdk/src/schema/manifest.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ const SpecSchema = z.object({

// ── Top-level Manifest ────────────────────────────────────────────────────────
export const ManifestSchema = z.object({
apiVersion: z.literal('agentspec.io/v1'),
apiVersion: z.literal('agentspec.io/v1alpha1'),
kind: z.literal('AgentSpec'),
metadata: MetadataSchema,
spec: SpecSchema,
Expand Down
Loading