|
| 1 | +# Kore CI Implementation Plan |
| 2 | + |
| 3 | +> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. |
| 4 | +
|
| 5 | +**Goal:** Tag the current milestone and add a minimal GitHub Actions workflow that keeps `kore` green on pushes and pull requests. |
| 6 | + |
| 7 | +**Architecture:** Keep CI intentionally small: one Ubuntu job, stable Rust, four verification commands. Tag the current milestone first, then commit and push the CI workflow so GitHub can validate the repository automatically. |
| 8 | + |
| 9 | +**Tech Stack:** Git, GitHub CLI, GitHub Actions, Rust, cbindgen |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +### Task 1: Tag the milestone commit |
| 14 | + |
| 15 | +**Files:** |
| 16 | +- No file changes |
| 17 | + |
| 18 | +**Step 1: Verify the current HEAD** |
| 19 | + |
| 20 | +Run: `git rev-parse --short HEAD` |
| 21 | +Expected: `351efbc` |
| 22 | + |
| 23 | +**Step 2: Create the annotated tag** |
| 24 | + |
| 25 | +Run: |
| 26 | + |
| 27 | +```bash |
| 28 | +git tag -a v0.1.0-dev -m "Stable CPU kernel + C ABI milestone" |
| 29 | +``` |
| 30 | + |
| 31 | +**Step 3: Push branch and tag** |
| 32 | + |
| 33 | +Run: |
| 34 | + |
| 35 | +```bash |
| 36 | +git push origin main && git push origin v0.1.0-dev |
| 37 | +``` |
| 38 | + |
| 39 | +**Step 4: Verify tag exists remotely** |
| 40 | + |
| 41 | +Run: `git ls-remote --tags origin v0.1.0-dev` |
| 42 | +Expected: one matching remote tag line |
| 43 | + |
| 44 | +### Task 2: Add minimal GitHub Actions workflow |
| 45 | + |
| 46 | +**Files:** |
| 47 | +- Create: `.github/workflows/ci.yml` |
| 48 | + |
| 49 | +**Step 1: Write the workflow** |
| 50 | + |
| 51 | +```yaml |
| 52 | +name: CI |
| 53 | + |
| 54 | +on: [push, pull_request] |
| 55 | + |
| 56 | +jobs: |
| 57 | + check: |
| 58 | + runs-on: ubuntu-latest |
| 59 | + steps: |
| 60 | + - uses: actions/checkout@v4 |
| 61 | + - uses: dtolnay/rust-toolchain@stable |
| 62 | + - run: cargo clippy -- -D warnings |
| 63 | + - run: cargo test |
| 64 | + - run: cargo check |
| 65 | + - name: Header drift check |
| 66 | + run: | |
| 67 | + cargo install cbindgen --locked |
| 68 | + cbindgen --config cbindgen.toml --output /tmp/kore_check.h |
| 69 | + diff include/kore.h /tmp/kore_check.h |
| 70 | +``` |
| 71 | +
|
| 72 | +**Step 2: Run local equivalence checks** |
| 73 | +
|
| 74 | +Run: |
| 75 | +
|
| 76 | +```bash |
| 77 | +cargo clippy -- -D warnings && cargo test && cargo check && cbindgen --config cbindgen.toml --output /tmp/kore_check.h && diff include/kore.h /tmp/kore_check.h |
| 78 | +``` |
| 79 | + |
| 80 | +Expected: PASS |
| 81 | + |
| 82 | +**Step 3: Commit the workflow** |
| 83 | + |
| 84 | +Run: |
| 85 | + |
| 86 | +```bash |
| 87 | +git add .github/workflows/ci.yml docs/plans/2026-03-20-kore-ci-design.md docs/plans/2026-03-20-kore-ci-implementation.md |
| 88 | +git commit -m "ci: add minimal github actions workflow" |
| 89 | +``` |
| 90 | + |
| 91 | +### Task 3: Push CI and confirm GitHub Actions is green |
| 92 | + |
| 93 | +**Files:** |
| 94 | +- No intended file changes |
| 95 | + |
| 96 | +**Step 1: Push the new workflow commit** |
| 97 | + |
| 98 | +Run: `git push origin main` |
| 99 | +Expected: push succeeds |
| 100 | + |
| 101 | +**Step 2: Watch the latest GitHub Actions run** |
| 102 | + |
| 103 | +Run: `gh run watch --exit-status` |
| 104 | +Expected: workflow completes successfully |
| 105 | + |
| 106 | +**Step 3: Verify final run status** |
| 107 | + |
| 108 | +Run: `gh run list --limit 1` |
| 109 | +Expected: latest `CI` run shows `completed success` |
| 110 | + |
| 111 | +## Notes For Execution |
| 112 | + |
| 113 | +- Keep the workflow intentionally minimal. |
| 114 | +- Do not add matrix jobs, caches, release jobs, or badges in this phase. |
| 115 | +- If GitHub Actions fails due to an environment-specific issue, fix only the blocking CI issue and re-run. |
0 commit comments