docs(agent-memory): keep handoff text to project state (#715) #331
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Agent Instruction Validation | |
| on: | |
| pull_request: | |
| paths: | |
| - "AGENTS.md" | |
| - "PATTERNS.md" | |
| - "CLAUDE.md" | |
| - "GEMINI.md" | |
| - ".claude/**" | |
| - ".gemini/**" | |
| - ".github/AGENT_MEMORY.md" | |
| - ".github/README.md" | |
| - ".github/copilot-instructions.md" | |
| - ".github/instruction-surfaces.json" | |
| - ".github/agents/**" | |
| - ".github/instructions/**" | |
| - ".github/skills/**" | |
| - "**/AGENTS.md" | |
| - "**/AGENTS.override.md" | |
| - ".github/workflows/agent-instructions.yml" | |
| - "decisions/**" | |
| - "runbooks/**" | |
| - "lib/zsh-standard-policy.json" | |
| - "lib/approved-skills.json" | |
| - "scripts/org-routing.py" | |
| - "scripts/test_org_routing.py" | |
| - "scripts/org_policy_report.py" | |
| - "scripts/test_org_policy_report.py" | |
| - "scripts/validate-agent-policy.py" | |
| - "scripts/test_validate_agent_policy.py" | |
| - "scripts/validate-zsh-standard-policy.py" | |
| - "scripts/test_validate_zsh_standard_policy.py" | |
| - "scripts/decision-records.py" | |
| - "scripts/test_decision_records.py" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "AGENTS.md" | |
| - "PATTERNS.md" | |
| - "CLAUDE.md" | |
| - "GEMINI.md" | |
| - ".claude/**" | |
| - ".gemini/**" | |
| - ".github/AGENT_MEMORY.md" | |
| - ".github/README.md" | |
| - ".github/copilot-instructions.md" | |
| - ".github/instruction-surfaces.json" | |
| - ".github/agents/**" | |
| - ".github/instructions/**" | |
| - ".github/skills/**" | |
| - "**/AGENTS.md" | |
| - "**/AGENTS.override.md" | |
| - ".github/workflows/agent-instructions.yml" | |
| - "decisions/**" | |
| - "runbooks/**" | |
| - "lib/zsh-standard-policy.json" | |
| - "lib/approved-skills.json" | |
| - "scripts/org-routing.py" | |
| - "scripts/test_org_routing.py" | |
| - "scripts/org_policy_report.py" | |
| - "scripts/test_org_policy_report.py" | |
| - "scripts/validate-agent-policy.py" | |
| - "scripts/test_validate_agent_policy.py" | |
| - "scripts/validate-zsh-standard-policy.py" | |
| - "scripts/test_validate_zsh_standard_policy.py" | |
| - "scripts/decision-records.py" | |
| - "scripts/test_decision_records.py" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| name: Validate Agent Instructions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.10" | |
| - name: Set up Zsh | |
| uses: ./actions/setup-zsh | |
| - name: Run agent policy unit tests | |
| run: python3 -m unittest scripts/test_validate_agent_policy.py -v | |
| - name: Run routing generator unit tests | |
| run: python3 -m unittest scripts/test_org_routing.py scripts/test_org_policy_report.py -v | |
| - name: Run decision record unit tests | |
| run: python3 -m unittest scripts/test_decision_records.py -v | |
| - name: Run Zsh standard policy unit tests | |
| run: python3 -m unittest scripts/test_validate_zsh_standard_policy.py -v | |
| - name: Validate Zsh standard policy | |
| run: python3 scripts/validate-zsh-standard-policy.py | |
| - name: Validate agent policy | |
| run: python3 scripts/validate-agent-policy.py | |
| - name: Validate decision records and index | |
| run: python3 scripts/decision-records.py --check |