Skip to content

feat!: move Foreman to its own repository, Meitheal - #2594

Merged
Defilan merged 7 commits into
defilantech:mainfrom
Defilan:feat/remove-foreman
Nov 23, 2026
Merged

Defilan merged 7 commits into
defilantech:mainfrom
Defilan:feat/remove-foreman

Conversation

@Defilan

@Defilan Defilan commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What

Removes Foreman, the agentic coder/verifier/reviewer harness, from LLMKube. Foreman now lives in its own repository, with its git history, as Meitheal: https://github.com/defilantech/meitheal. Its CI is green there. After this PR, LLMKube is the inference operator only.

docs/site/foreman.md replaces the old Foreman docs section and is listed under Reference as "Foreman (moved to Meitheal)", so /docs/foreman on llmkube.com still resolves. It maps every old name to its new one, says Meitheal's first release (0.1.0) is pending, and gives the steps to move a running install.

Why

Part of #2526

An agentic coding harness is outside the scope of an inference operator, and keeping it here blurs what LLMKube is, which matters for the CNCF Sandbox application. If LLMKube is accepted, the LLMKube name and domains move to the CNCF, so Foreman could not keep living on foreman.llmkube.dev. Meitheal uses meitheal.dev instead.

This PR does not close #2526. The open area/foreman issues have already moved to Meitheal (meitheal#4 to #35), but the llmkube.com /docs/foreman pages and Meitheal's first release are still open there.

How

Commits:

  • feat!: move Foreman to its own repository, Meitheal: the removal.
  • docs: drop Foreman from the README, roadmap and guides and docs: check the Foreman CRD hand-off and the chart version before migrating: the docs and the migration note.
  • Merge upstream/main into feat/remove-foreman: resolves CODEOWNERS (keeps the metal-agent block), .goreleaser.yaml (keeps the linux metal-agent build and archive from feat(release): ship the metal-agent for linux/arm64 and linux/amd64 #2582) and internal/machoplist/release_licenses_test.go.
  • docs: leave ROADMAP.md as it is on main: docs: refresh ROADMAP.md for v0.10.19 #2486 owns the roadmap rewrite.
  • docs: list the Foreman note under Reference and point Foreman users to Meitheal: nav placement, the pending-release line, SECURITY.md and CONTRIBUTING.md.
  • fix: catch Meitheal imports from test files and stop pinning the last Foreman release in the migration note: review follow-ups (go list -test, an unpinned last-release line, and an expect-0 grep -c that no longer exits 1).

Removed (Meitheal has every piece): api/foreman, internal/foreman, pkg/foreman, charts/foreman, config/foreman, examples/foreman, cmd/foreman-agent, cmd/foreman-operator, cmd/hunkcheck, cmd/sync-reviewer-prompts, pkg/selfupdate, the llmkube foreman and llmkube audit command trees, the foreman_* metrics block in internal/metrics, the Foreman Makefile targets, goreleaser builds and images, Dockerfiles, deployment units and release-please extra-files entry, foreman-e2e.yml, the Foreman steps in helm-chart.yml, release-please.yml (signing, SBOM and provenance for the Foreman images, the coder image job, the chart push) and test-macos.yml, and the four Foreman proposals with their plan and spec documents.

Stays: api/v1alpha1 and pkg/agent keep every symbol, because Meitheal imports both at v0.10.19 (InferenceService, the Metal agent constants, DarwinMemoryProvider). Only comments changed there. Generated files (role.yaml, webhook manifests, chart CRDs, docs/site/reference/) were regenerated, not hand-edited. go mod tidy drops github.com/modelcontextprotocol/go-sdk.

Import guard: LLMKube must never import Meitheal or Foreman again, enforced in two layers: a depguard rule in .golangci.yml, which catches an import whose module resolves (for example through a go.work), and a step in lint.yml ("Lint and static checks", a required check in the main ruleset) that fails when go list -e -test -deps ./... names a foreman or meitheal package. -test matters: without it, an import in a _test.go file is not listed. The second exists because an import of a module that isn't in go.mod fails lint as a typecheck error before depguard runs. Both were falsified locally: adding import _ "github.com/defilantech/meitheal/api/v1alpha1" makes the step exit 1 (in a _test.go file too, which only -test catches), and with a stub module in a temporary go.work, depguard reports not allowed from list 'no-meitheal'.

Decisions worth checking:

  • Migration step 1 differs from the issue. helm uninstall reads helm.sh/resource-policy: keep from the release's stored manifest, not from the live object, so annotating the CRDs alone doesn't keep them. helm upgrade does read the live annotation. So the step is: annotate, then helm upgrade --reuse-values --set crds.install=false. The old chart templates its CRDs under crds.install from 0.9.1 on. The last step deletes the old CRDs explicitly.
  • Meitheal has no release yet. The migration note says 0.1.0 is pending and to stay on the last Foreman release LLMKube published until it ships. The full guide, from docs: add a migration guide for Foreman users meitheal#3, is merged.
  • README: the Foreman section, tagline and nav link are gone, with no Meitheal pointer, to keep the README about inference. Foreman users land on /docs/foreman and the changelog.
  • ROADMAP.md is unchanged here; docs: refresh ROADMAP.md for v0.10.19 #2486 rewrites it and drops the Foreman plane.
  • CODEOWNERS: the Foreman block is removed, since every path it covered is gone. MAINTAINERS.md is unchanged here: its Foreman area waits on a conversation with that maintainer.
  • SECURITY.md lists Foreman as out of scope and points to Meitheal's security policy, including for the Foreman artifacts earlier releases published.
  • Releases: the last Foreman build from this repo is v0.10.19, the tag Meitheal was imported from. Merge this before release PR chore: release 0.11.0 #2590: release-please then rebuilds it as 0.11.0 without Foreman. If chore: release 0.11.0 #2590 merges first, it publishes foreman 0.10.20 artifacts with the same Foreman code; the migration note no longer names a version, so it stays correct either way.

Open PRs that need a rebase after this: #2583 (the Linux service file) and #2482 (the gate CI-sync test, CODEOWNERS, .goreleaser.yaml and the archive list in release_licenses_test.go).

Verification (on the branch after the merge with main):

  • go build ./... and go vet ./... pass; go mod tidy -diff is clean; goreleaser check passes.
  • go list -deps ./... | grep -i -E 'foreman|meitheal': no output.
  • git grep -il foreman: nine files, all intended: CHANGELOG.md (history), docs/site/foreman.md (the migration note) and docs/site/_meta/nav.yaml (keeps the URL), .golangci.yml and lint.yml (the guards name the paths), SECURITY.md (the pointer to Meitheal), goreleaser-check.yml (a comment about the old foreman-* tags), ROADMAP.md (until docs: refresh ROADMAP.md for v0.10.19 #2486) and MAINTAINERS.md (above).
  • golangci-lint v2.15.0: 0 issues. with GOOS=darwin and GOOS=linux, for both .golangci.yml and .golangci-deadcode.yml.
  • No drift from controller-gen v0.23.0, sync-crds.sh or the federation chart CRDs; check-helm-rbac (251 rules), check-agents-md, check-docs-reference, check-docs-links (37 pages), check-go-version, check-helm-webhook-cert, check-metal-agent-rbac and validate-samples pass.
  • go test passes for every package except test/e2e, including the internal/controller envtest suite (283 s); make test-chart (210 tests), make test-chart-rules and the touched script tests pass.

BEGIN_COMMIT_OVERRIDE
feat!: move Foreman to its own repository, Meitheal; see https://llmkube.com/docs/foreman to migrate
END_COMMIT_OVERRIDE

AI assistance

Assisted-by: Claude Code (Opus 5.5): made the removal, the docs and the migration note, then merged main and made the small doc fixes (nav placement, the pending-release line, SECURITY.md, CONTRIBUTING.md); verified with go build, go vet, go test across all packages including the controller envtest suite, golangci-lint (darwin and linux), the codegen drift checks, the docs checks, the chart tests and goreleaser check.

Assisted-by: qwen38-flash-next (unsloth/Qwen3.8-Flash-Next-GGUF UD-Q4_K_XL, generic (llmkube-gufo-rocm-gfx1151) runtime, self-hosted with LLMKube on AMD Strix Halo (Ryzen AI Max, Radeon iGPU); roles: read-only review. Approved with nits after checking the migration note's Helm mechanics against helm's source; its nits on test-file imports, the pinned release number and the expect-0 grep are fixed in 7795337.)

Checklist

  • Tests added/updated
  • make test passes locally (every package except e2e, including internal/controller)
  • make lint passes locally
  • Commit messages follow conventional commits
  • All commits are signed off (git commit -s) per DCO
  • AI assistance (if any) is disclosed above, per CONTRIBUTING.md
  • Documentation updated (if user-facing change)

Foreman, the coder, verifier and reviewer harness, now lives in its own
repository, github.com/defilantech/meitheal, renamed Meitheal and
imported with its history. LLMKube is the inference operator only.

Removed from this repository:

- Code: api/foreman, internal/foreman, pkg/foreman, cmd/foreman-agent,
  cmd/foreman-operator, cmd/hunkcheck, cmd/sync-reviewer-prompts and
  pkg/selfupdate; the llmkube foreman and llmkube audit command trees in
  pkg/cli; the foreman_* collectors and their record helpers in
  internal/metrics.
- Chart, config and samples: charts/foreman, config/foreman, the six
  foreman.llmkube.dev CRD bases, examples/foreman, and the Foreman rules
  and webhooks that drop out of the regenerated config/rbac/role.yaml and
  config/webhook/manifests.yaml.
- Build and release: the Foreman Makefile targets (foreman-chart-crds,
  build-, docker-build- and docker-push-foreman-*, install- and
  uninstall-foreman-agent, sync- and check-reviewer-prompts), the five
  Foreman Dockerfiles, the Foreman builds, darwin agent archive and images
  in .goreleaser.yaml, charts/foreman in release-please's extra-files, the
  Foreman image signing, SBOM and provenance steps, the foreman chart push
  and the coder image job in the release workflow, the macOS and Linux
  agent service files, and the Foreman e2e workflow.
- CI and scripts: the Foreman chart job (its llmkube unit tests stay, as a
  Chart Unit Tests job), the foreman chart CRD sync, the reviewer prompt
  check, the pkg/foreman darwin tests, and the Foreman parts of
  check-helm-rbac.sh, scan-images.sh and their tests.
- Docs: docs/site/foreman becomes one page at the same /docs/foreman URL
  that says where Foreman went, maps the old names to the new ones and
  lists the CRD migration steps. The generated reference pages drop the
  Foreman CLI, CRDs, chart values and metrics. The Foreman proposals and
  plans moved with the code.

The llmkube foreman dispatch, slice, run and decisions commands and
llmkube audit export now ship in the meitheal CLI. Meitheal keeps
importing api/v1alpha1 and pkg/agent from this module, so both stay
unchanged apart from comments.

A depguard rule denies github.com/defilantech/meitheal and the old
api, pkg and internal Foreman paths, and a lint workflow step fails when
go list -deps names a Foreman or Meitheal package, which also catches an
import of a module that is not in go.mod, where lint stops at typecheck.

go mod tidy drops github.com/modelcontextprotocol/go-sdk; golang.org/x/sync
stays as an indirect dependency.

Fixes defilantech#2526

BREAKING CHANGE: Foreman is no longer part of LLMKube. The llmkube foreman
and llmkube audit commands, the foreman chart, the foreman.llmkube.dev
CRDs, the llmkube-foreman-* images and the foreman_* metrics are no
longer built or published from this repository. Meitheal replaces them
under new names: API group meitheal.dev, images
ghcr.io/defilantech/meitheal-*, chart
oci://ghcr.io/defilantech/charts/meitheal, CLI meitheal and metrics
meitheal_*. Published Foreman images, charts and releases stay where
they are. See https://llmkube.com/docs/foreman for the migration steps.

Signed-off-by: Christopher Maher <chris@mahercode.io>
Foreman moved to github.com/defilantech/meitheal (defilantech#2526). Remove or
redirect the remaining mentions with minimal edits: the README's Foreman
section, tagline, nav link and status bullet; the roadmap's agentic
plane and past entries, which now point to Meitheal; the Foreman scope
line in SECURITY.md; CONTRIBUTING.md, which now says the project's own
agent opens PRs rather than naming Foreman; the release verification and
macOS signing docs, which list only the binaries still built here; and
passing mentions in two proposals, two lab builds, the model matrix, the
observability page and the spine probes README.

Signed-off-by: Christopher Maher <chris@mahercode.io>
@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…rating

Signed-off-by: Christopher Maher <chris@mahercode.io>
Resolves the three conflicts with main since 956a9f9:

- .github/CODEOWNERS: keep main's metal-agent block for @cnuss, drop
  the Foreman block.
- .goreleaser.yaml: keep main's llmkube-metal-agent-linux build and
  archive (defilantech#2582), drop the Foreman builds and archive.
- internal/machoplist/release_licenses_test.go: keep main's check that
  each named archive exists, and drop llmkube-foreman-agent from the list.

Signed-off-by: Christopher Maher <chris@mahercode.io>
PR defilantech#2486 owns the roadmap rewrite, which already drops the Foreman plane, so this branch no longer edits ROADMAP.md.

Signed-off-by: Christopher Maher <chris@mahercode.io>
…o Meitheal

- docs/site/_meta/nav.yaml: move the note out of its own top-level
  sidebar section into Reference as "Foreman (moved to Meitheal)". The
  foreman slug is unchanged, so /docs/foreman still resolves.
- docs/site/foreman.md: say that Meitheal's first release, 0.1.0, is
  pending and that users should stay on Foreman 0.10.19 until it ships.
- SECURITY.md: list Foreman as out of scope here, including the Foreman
  artifacts earlier releases published, and point to Meitheal's
  security policy.
- CONTRIBUTING.md: name the agent that opens PRs, defilan-agent[bot].

Signed-off-by: Christopher Maher <chris@mahercode.io>
@Defilan Defilan mentioned this pull request Nov 23, 2026
4 of 7 tasks
… Foreman release in the migration note

go list without -test does not list a test binary's imports, so the lint guard missed a _test.go import (checked: a probe import is found only with -test). The note now says the last Foreman release LLMKube published, which stays true whichever release PR merges first, and the expect-0 grep no longer exits 1 on success.

Signed-off-by: Christopher Maher <chris@mahercode.io>
@Defilan
Defilan merged commit 9624317 into defilantech:main Nov 23, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[STORY] Move Foreman to its own repository as Meitheal

1 participant