Skip to content
This repository was archived by the owner on Jul 21, 2026. It is now read-only.

Commit 20a91e5

Browse files
ci: add templated k9iser-regen trigger (mirrors boj-build.yml) (#76)
Adds `.github/workflows/k9iser-regen.yml` — triggers boj-server's **k9iser-mcp** cartridge (boj-server#73) to regenerate `generated/k9iser/*.k9` centrally, instead of ad-hoc hand-commit (the drift class behind k9iser#8 / idaptik#77). Mirrors `boj-build.yml`: guarded on `k9iser.toml` presence, fire-and-forget until the BoJ REST runtime ships (Elixir rewrite). Part of the standards epic to roll the -iser regeneration-cartridge pattern into the iseriser scaffold. Refs hyperpolymath/k9iser#8. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5ecff23 commit 20a91e5

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/k9iser-regen.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# SPDX-License-Identifier: AGPL-3.0-or-later
2+
# Triggers central K9-contract regeneration via boj-server's k9iser-mcp
3+
# cartridge, so generated/k9iser/*.k9 are produced centrally instead of
4+
# being run ad hoc and hand-committed (the drift that broke Dogfood Gate
5+
# estate-wide — hyperpolymath/k9iser#8). Mirrors boj-build.yml.
6+
# Fire-and-forget until the BoJ REST runtime ships (Elixir rewrite).
7+
name: K9iser Regen Trigger
8+
on:
9+
push:
10+
branches: [main, master]
11+
workflow_dispatch:
12+
permissions:
13+
contents: read
14+
jobs:
15+
trigger-k9iser:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
- name: Detect k9iser manifest
21+
id: detect
22+
run: |
23+
if [ -f k9iser.toml ]; then echo "present=true" >> "$GITHUB_OUTPUT"; else echo "present=false" >> "$GITHUB_OUTPUT"; fi
24+
- name: Trigger BoJ Server (k9iser-mcp)
25+
if: steps.detect.outputs.present == 'true'
26+
run: |
27+
curl -X POST "http://boj-server.local:7700/cartridges/k9iser-mcp/invoke" -H "Content-Type: application/json" -d "{\"repo\": \"${{ github.repository }}\", \"branch\": \"${{ github.ref_name }}\", \"tool\": \"k9_generate\"}"
28+
continue-on-error: true

0 commit comments

Comments
 (0)