mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
40e4b0dd3e
* docs(agents): restore and enforce progressive disclosure * test(maestro): pin typed selector fallback signal * docs(agents): address progressive disclosure review * docs(agents): restore orphaned traps and close guidance-gate bypasses - AGENTS.md: skills carry a minimal start/routing card; command semantics stay in versioned CLI help (the skills contract enumerates two skills by hand, so prose retains ownership for the rest) - testing.md: restore the two local-only XCTest snags CI never hits (unsigned-bundle policy refusal signature + first-run automation permission) - scripts/gate/routing.ts: record GitHub's 300-changed-file path-filter limit at the paths-ignore assertion it bounds - agent-guidance-contract.test.ts: recurse docs/agents so nested guidance cannot evade the byte budgets while the gate stays green
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Agent Guidance
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'AGENTS.md'
|
|
- 'CONTEXT.md'
|
|
- 'docs/agents/**'
|
|
- 'scripts/__tests__/agent-guidance-contract.test.ts'
|
|
- 'scripts/check-affected/**'
|
|
- 'package.json'
|
|
- '.github/actions/run-gate/action.yml'
|
|
- '.github/actions/setup-node-pnpm/action.yml'
|
|
- '.github/workflows/agent-guidance.yml'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'AGENTS.md'
|
|
- 'CONTEXT.md'
|
|
- 'docs/agents/**'
|
|
- 'scripts/__tests__/agent-guidance-contract.test.ts'
|
|
- 'scripts/check-affected/**'
|
|
- 'package.json'
|
|
- '.github/actions/run-gate/action.yml'
|
|
- '.github/actions/setup-node-pnpm/action.yml'
|
|
- '.github/workflows/agent-guidance.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
contract:
|
|
name: Ownership and context budgets
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Setup Node and pnpm
|
|
uses: ./.github/actions/setup-node-pnpm
|
|
|
|
- name: Check agent guidance
|
|
uses: ./.github/actions/run-gate
|
|
with: { gate: agent-guidance }
|