Repository navigation
feat!: move Foreman to its own repository, Meitheal - #2594
Merged
Merged
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
3 of 7 tasks
…rating Signed-off-by: Christopher Maher <chris@mahercode.io>
Merged
4 of 7 tasks
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdreplaces the old Foreman docs section and is listed under Reference as "Foreman (moved to Meitheal)", so/docs/foremanon 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 usesmeitheal.devinstead.This PR does not close #2526. The open
area/foremanissues have already moved to Meitheal (meitheal#4 to #35), but the llmkube.com/docs/foremanpages 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 guidesanddocs: 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) andinternal/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-0grep -cthat 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, thellmkube foremanandllmkube auditcommand trees, theforeman_*metrics block ininternal/metrics, the Foreman Makefile targets, goreleaser builds and images, Dockerfiles, deployment units and release-please extra-files entry,foreman-e2e.yml, the Foreman steps inhelm-chart.yml,release-please.yml(signing, SBOM and provenance for the Foreman images, the coder image job, the chart push) andtest-macos.yml, and the four Foreman proposals with their plan and spec documents.Stays:
api/v1alpha1andpkg/agentkeep 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 tidydropsgithub.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 ago.work), and a step inlint.yml("Lint and static checks", a required check in the main ruleset) that fails whengo list -e -test -deps ./...names a foreman or meitheal package.-testmatters: without it, an import in a_test.gofile is not listed. The second exists because an import of a module that isn't ingo.modfails lint as a typecheck error before depguard runs. Both were falsified locally: addingimport _ "github.com/defilantech/meitheal/api/v1alpha1"makes the step exit 1 (in a_test.gofile too, which only-testcatches), and with a stub module in a temporarygo.work, depguard reportsnot allowed from list 'no-meitheal'.Decisions worth checking:
helm uninstallreadshelm.sh/resource-policy: keepfrom the release's stored manifest, not from the live object, so annotating the CRDs alone doesn't keep them.helm upgradedoes read the live annotation. So the step is: annotate, thenhelm upgrade --reuse-values --set crds.install=false. The old chart templates its CRDs undercrds.installfrom 0.9.1 on. The last step deletes the old CRDs explicitly./docs/foremanand the changelog.Open PRs that need a rebase after this: #2583 (the Linux service file) and #2482 (the gate CI-sync test, CODEOWNERS,
.goreleaser.yamland the archive list inrelease_licenses_test.go).Verification (on the branch after the merge with main):
go build ./...andgo vet ./...pass;go mod tidy -diffis clean;goreleaser checkpasses.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) anddocs/site/_meta/nav.yaml(keeps the URL),.golangci.ymlandlint.yml(the guards name the paths), SECURITY.md (the pointer to Meitheal),goreleaser-check.yml(a comment about the oldforeman-*tags), ROADMAP.md (until docs: refresh ROADMAP.md for v0.10.19 #2486) and MAINTAINERS.md (above).0 issues.with GOOS=darwin and GOOS=linux, for both.golangci.ymland.golangci-deadcode.yml.sync-crds.shor 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-rbacandvalidate-samplespass.go testpasses for every package excepttest/e2e, including theinternal/controllerenvtest suite (283 s);make test-chart(210 tests),make test-chart-rulesand 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
make testpasses locally (every package except e2e, includinginternal/controller)make lintpasses locallygit commit -s) per DCO