Repository navigation
Description
What happened
Benchmarking the same task under two crew presets (2026-08-31): the chat surface honors /crew — the preset writes models.tiers.* into the profile and chatv3 reads them back (cmd/aforge/chatv3.go:1751 via config.TierModelAt). The headless door does not: aforge do resolves its two seats from flags and env only — --model (default AFORGE_MODEL), --plan-model (default AFORGE_PLAN_MODEL) at cmd/aforge/do.go:166-167 — and never asks the profile. aforge exec, plan, and run are the same shape.
So a person who has said, in the product's own vocabulary, "my crew is frugal" gets that policy in the chat and silently loses it the moment the same brain runs headless. For the benchmark we had to hand-translate the preset into slugs (--plan-model qwen/qwen3.8-27b --model qwen/qwen3.8-27b for frugal; --plan-model moonshotai/kimi-k3:low for balanced) by reading models.tiers.* out of config.json — which is exactly the one-source-of-truth violation the config exists to prevent: the crew IS the stated model policy, and headless invents a second one.
The fix
One resolution ladder for every door that needs a model, chat and headless alike:
- an explicit flag (
--model,--plan-model) — always wins; - the environment (
AFORGE_MODEL,AFORGE_PLAN_MODEL) — automation's override; - the profile's crew tiers (
config.TierModelAt— mastermind for the planning seat, the working tier for the worker seat), which today only chat reads; - the shipped default.
Applied to do, exec, plan, run, and any future headless door — the ladder lives in one place (beside config.CrewAt/TierModelAt), not re-derived per command. AFORGE_HOME/AFORGE_PROFILE_DIR already scope which profile answers, so isolated runs keep working.
The receipt should say so: do's opening lines (and --json output) name which rung answered — models: crew frugal (mastermind qwen/qwen3.8-27b · work qwen/qwen3.8-27b) versus models: --model flag — so a benchmark or a script can verify what actually ran.
Acceptance
- With crew
frugalin the profile and no flags/env,aforge doplans on the profile's mastermind and works on the profile's working tier; a test pins the ladder's order for all four rungs. exec/plan/runresolve through the same single ladder (one function, four callers).- The run's receipt names the rung that chose the models.
- The manual's headless pages say the crew now reaches
do, and stop implying--modelis the only voice.
Drafted with CodeAF · reviewed and owned by the author
Activity
The crew reaches every headless door, and a run says which voice chos…
The crew reaches every headless door, and a run says which voice chos…