refactor(council): the council leaves core for a plugin (DIVE-4893)
Self-hosted AI team: Claude Code, Codex and more, from your phone
Brought to you by:
fivedive
Originally created by: 5dive-bot
DIVE-4869 phases 3-4 (DIVE-4893). 5dive council becomes the opt-in plugin 5dive-ai/5dive-council; core stops shipping ~16.8k lines of council (src/cmd_council.sh, src/council/, 30 tests/council_*).
Merge order: 5dive-ai/5dive-council [#1], then [#2], then this. The plugin's CI builds core main; [#2] fixes a test shim that only passed because core still answered council itself.
council leaves main() and FIVEDIVE_BUILTIN_VERBS together (T5 set-equality holds). On a box without the plugin, 5dive council … prints 5dive plugin add 5dive-ai/5dive-council via _moved_verb_repo._plugin_dispatch_verb exports FIVEDIVE_JSON_MODE. main() strips --json before dispatch, so every plugin verb was losing it.seal.mjs holds the genesis writer and chain check; the cli bodies for show, render and merge moved over unchanged. _constitution_solo_seal and _constitution_verify are there too. constitution init|show|set|edit work with no plugin.constitution_kernel_unit checks the solo genesis writer against golden bytes from the pre-move council. It compares the record, the canonical preimage and the seeded bench, and a one-space mutant makes it fail. This matters because the plugin appends to the same hash chain. K6 covers the chain verdicts. The old K5 parity arm is gone because the copies it compared are gone.constitution set|edit runs council amend through the plugin. Without the plugin it refuses with E_NOT_INSTALLED and the install line, and it never falls back to a solo seal.constitution verify, and constitution floor-rx, which the plugin's council floor-diff reads..github/ for src/council / cmd_council / council_* consumers. None found (the DIVE-4752 trap).STATE_DIR:plugin add council@local (rc 3), which is the release-note fact.constitution verify passes on this core with no plugin installed.plugin add, dispatched council verify passes, council roster --json and --json council roster both reach the plugin, and demote appends a third record.constitution set with the plugin installed carried a real council amend.run_all.sh) was run against this core. Counts are on the row.🤖 Generated with Claude Code
Ticket changed by: lodar