# p35 — ADW harness test. Disposable prototype (SPEC §18). Push-triggered on the # working branch and path-scoped, so it runs only when p35 changes and needs no # presence on main. Proves the App token + claude-code-action + subagent + model # override actually work, and pins down the action's real input syntax. Delete # once folded into the real ADW workflows. name: p35-adw-harness on: push: branches: ["claude/specs-progress-n5u27n"] paths: - ".github/workflows/p35-adw-harness.yml" - "prototypes/p35-adw-harness/**" workflow_dispatch: {} permissions: contents: read issues: write pull-requests: write concurrency: group: p35-${{ github.ref }} cancel-in-progress: true jobs: harness: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: mint the bot token id: token continue-on-error: true uses: actions/create-github-app-token@v1 with: app-id: ${{ secrets.APP_ID }} private-key: ${{ secrets.APP_PRIVATE_KEY }} - name: token outcome run: | echo "create-github-app-token outcome = ${{ steps.token.outcome }}" >> "$GITHUB_STEP_SUMMARY" echo "token minted: ${{ steps.token.outputs.token != '' }}" >> "$GITHUB_STEP_SUMMARY" # Finding (run 1): claude-code-action@v1 rejects `push` — it only handles # issue/PR/comment events. So push/schedule/tag-triggered agents (planner, # sweeper, docs-writer, release-manager) need the event-agnostic CLI runner # instead. Probe it here. - name: install claude code CLI run: npm install -g @anthropic-ai/claude-code && claude --version - name: run headless (event-agnostic runner) id: cli continue-on-error: true env: CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} GH_TOKEN: ${{ steps.token.outputs.token }} run: | set -o pipefail claude -p "Reply with exactly this line and nothing else: ADW-HARNESS-OK repo=${{ github.repository }}" \ --model claude-haiku-4-5-20251001 --output-format text 2>&1 | tee cli-out.txt echo "---" grep -q "ADW-HARNESS-OK" cli-out.txt && echo "CLI_RUNNER=ok" || { echo "CLI_RUNNER=fail"; exit 1; } - name: cli outcome run: | echo "headless CLI runner outcome = ${{ steps.cli.outcome }}" >> "$GITHUB_STEP_SUMMARY"