Repository navigation
Description
Part of #20266 → #20257. The plan excludes op-program from the decoupling because it depends on op-geth state execution (core/state, core/vm). The in-tree replacement lives at rust/kona (client + host). This issue tracks op-program's actual removal from the monorepo — a prerequisite for the final go.mod cutover (#20266) since op-program shares the monorepo's single go.mod.
Context
op-program has no separate go.mod — it's part of the root module, so it uses the same replace github.com/ethereum/go-ethereum => ... op-geth directive. As long as op-program is in the module, the cutover can't flip that directive.
External consumers (need migration first)
In-scope packages currently import op-program Go packages:
op-challenger (Go code):
op-challenger/game/fault/trace/super/provider_supervisor.go,provider_supernode.go→op-program/client/interop/typesop-challenger/game/fault/trace/cannon/provider.go→op-program/host/types,op-program/host/kvstoreop-challenger/game/fault/trace/utils/preimage.go→op-program/client/l1- (plus test files referencing the same packages)
op-devstack (runtime artefact references):
op-devstack/sysgo/add_game_type.go,superroot.go→op-program/bin/prestate-*.jsonpathsop-devstack/shared/challenger/challenger.go→op-program/bin/op-programbinary path (used as the Cannon fraud-proof server)
Build configs:
Makefile,justfile,.golangci.yamlentries for op-program
Scope
- Relocate the Go packages op-challenger depends on. For each imported op-program subpackage, either move the relevant types to
op-core/(if stable and reusable) or fold the minimal needed surface into op-challenger itself. Packages to handle:op-program/client/interop/types— interop message typesop-program/host/types— KV store typesop-program/host/kvstore— KV store implop-program/client/l1— L1 preimage helpers
- Swap op-challenger imports to the new locations; remove
op-programfrom its import graph. - Update op-devstack runtime references to use kona artifacts (kona-host binary + prestate files) instead of
op-program/bin/*. Blocked on kona reaching production-readiness for the Cannon fraud-proof server role. If not yet ready, leave a clear TODO rather than stale paths. - Delete
op-program/from the repo. - Remove op-program targets from
Makefile,justfile,.golangci.yaml, and any CI workflows. - Confirm
go mod tidycleanly drops op-program's transitive deps.
Dependencies
- Unblocks opgeth-decoupling: final cutover (flip go.mod to upstream go-ethereum) #20266 (can't flip
go.modto upstream go-ethereum while op-program still imports op-geth). - May be blocked on kona reaching the point where devstack/op-challenger integration tests can run against kona-host instead of op-program.
Out of scope
- Further kona development beyond what's needed to replace op-program's roles.
- Rewriting op-challenger's fault-proof logic — only the imports/paths change, not the algorithms.
🤖 Generated by Claude Code
Activity
refactor: host RootsOfUnity in op-service/kzg, off op-program
refactor: host RootsOfUnity in op-service/kzg, off op-program (ethere…
chore(op-e2e): drop op-program references
chore(op-devstack): remove Cannon game type (op-program) support (eth…
chore(op-e2e): drop op-program references
chore(op-challenger): don't require --cannon-server for permissioned …
chore(op-challenger): don't require --cannon-server for permissioned …
chore: remove op-program from the monorepo
chore(op-e2e): drop op-program references (ethereum-optimism#21257)
chore: remove op-program from the monorepo
chore(op-challenger): don't require --cannon-server for the permissio…
chore: remove op-program from the monorepo (ethereum-optimism#21271)
refactor: host RootsOfUnity in op-service/kzg, off op-program (ethere…
chore(op-devstack): remove Cannon game type (op-program) support (eth…
chore(op-e2e): drop op-program references (ethereum-optimism#21257)
chore(op-challenger): don't require --cannon-server for the permissio…
chore: remove op-program from the monorepo (ethereum-optimism#21271)