Commit 5265745
authored
ci: add agentic CI plan, health probe workflow, and recipe scaffold (#473)
* docs: add agentic CI plan for automated PR reviews and daily maintenance
Closes #472
* docs: add API configuration and auth modes to agentic CI plan
* docs: add PoC lessons and operational details to agentic CI plan
* docs: add runner label targeting to agentic CI plan
* docs: add re-review label and workflow_dispatch triggers to PR review
* docs: rename runner label to agentic-ci
* docs: add check run as gate for PR review, output stays as comment
* ci: add agentic CI health probe workflow and recipe scaffold
- Health probe: pings inference API, checks latency, verifies Claude CLI
- Runs every 6h on self-hosted agentic-ci runner, plus manual dispatch
- Dual auth mode: custom endpoint (secret) or OAuth fallback
- Recipe scaffold: _runner.md shared context, health-probe recipe
- Update .agents/README.md to include recipes directory
* docs: address Greptile review feedback on agentic CI plan
- Add checks: write to recipe frontmatter example
- Add concurrency group to daily maintenance workflow spec
- Clarify fork PRs are out of scope (pull_request event only)
- Document workflow_dispatch callers as trusted (accepted risk)
* fix: skip API curl in OAuth mode, add branch protection note
- Health probe: skip the direct API ping step in OAuth mode (no API
key available for curl; Claude CLI step is the sole health signal)
- Guard latency threshold check on custom auth mode
- Plan: note that contents:write on daily suites requires branch
protection rules to prevent agent self-merging
* fix: address Nabin's second review feedback
- Health probe: fix latency threshold string comparison with fromJSON()
- Health probe: add permissions: contents: read
- Health probe: fail fast if AGENTIC_CI_MODEL variable is not set
- Runner context: add prompt-injection defense and output sanitization
- Plan: update Phase 2 deliverable to match cache-based memory approach
- Plan: reference STYLEGUIDE.md in code-quality suite
- README: note that recipes don't need a .claude/ symlink
* docs: sync plan with implementation decisions
- Health probe uses workflow failure, not issue open/close
- Pre-flight checks should fail fast on missing config
- Add GHA string comparison gotcha to PoC lessons
- Add explicit permissions block recommendation to PoC lessons
- Bump max_turns from 20 to 30 in recipe example
* docs: address PR review feedback on agentic CI plan
- Review docs PRs with lighter recipe instead of skipping by file type
- Switch runner memory from committed branch to GH Actions cache
- Add import perf check to test-health suite
- Add nuance on dependency pinning strictness vs DX
- Add Follow-up: Weekend Agents section (perf, AI-QA, repo triage)
- Add cost guardrails open question
- Add status field to frontmatter1 parent 9c30fda commit 5265745
5 files changed
Lines changed: 917 additions & 0 deletions
File tree
- .agents
- recipes
- health-probe
- .github/workflows
- plans/472
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
0 commit comments