Private
Public Access
0
0
Files
manual_slop/conductor/tier2/opencode.json.fragment
T
ed 3ec601d4da fix(tier2): override top-level model to MiniMax-M3
The clone's opencode.json inherited the main repo's top-level 'model'
field (zai/glm-5) via 'git clone'. The tier2-autonomous agent has its
own 'model: minimax-coding-plan/MiniMax-M3' override, so the default
agent path was technically correct, but any other agent spawned without
an explicit model (or if the user manually switched to build/plan)
would have used zai/glm-5 instead of MiniMax-M3.

Fix:
1. Add top-level 'model: minimax-coding-plan/MiniMax-M3' to
   conductor/tier2/opencode.json.fragment.
2. setup_tier2_clone.ps1 merge now overrides 'model' from the fragment
   (was only overriding agent, permission, default_agent).
3. Added test_config_fragment_has_top_level_model (default-on) to
   assert the fragment's model field.
4. Added test_setup_script_overrides_model (opt-in TIER2_SANDBOX_TESTS=1)
   to assert the merge code.

All 17 tests pass (14 default-on + 3 opt-in).

Verified: re-ran setup against the live clone; opencode.json's
top-level 'model' is now minimax-coding-plan/MiniMax-M3.
2026-06-17 14:50:01 -04:00

81 lines
2.4 KiB
Plaintext

{
"$schema": "https://opencode.ai/config.json",
"default_agent": "tier2-autonomous",
"model": "minimax-coding-plan/MiniMax-M3",
"permission": {
"edit": "deny",
"read": {
"*": "deny",
"C:\\projects\\manual_slop_tier2\\**": "allow",
"C:\\Users\\Ed\\AppData\\Local\\manual_slop\\tier2\\**": "allow",
"C:\\Users\\Ed\\AppData\\Local\\manual_slop\\tier2_failures\\**": "allow"
},
"write": {
"*": "deny",
"C:\\projects\\manual_slop_tier2\\**": "allow",
"C:\\Users\\Ed\\AppData\\Local\\manual_slop\\tier2\\**": "allow",
"C:\\Users\\Ed\\AppData\\Local\\manual_slop\\tier2_failures\\**": "allow"
},
"bash": {
"*": "deny",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow",
"git add*": "allow",
"git commit*": "allow",
"git switch*": "allow",
"git branch*": "allow",
"git fetch*": "allow",
"git remote*": "allow",
"git rev-parse*": "allow",
"git show*": "allow",
"git config --get*": "allow",
"ls*": "allow",
"cat*": "allow",
"head*": "allow",
"tail*": "allow",
"find*": "allow",
"echo*": "allow",
"mkdir*": "allow",
"cp*": "allow",
"mv*": "allow",
"rm*": "allow",
"uv run python scripts/run_tests_batched.py*": "allow",
"uv run python scripts/tier2/*": "allow",
"pwsh -File scripts/tier2/*": "allow",
"git push*": "deny",
"git checkout*": "deny",
"git restore*": "deny",
"git reset*": "deny"
}
},
"agent": {
"tier2-autonomous": {
"model": "minimax-coding-plan/MiniMax-M3",
"temperature": 0.4,
"permission": {
"edit": "allow",
"read": {
"*": "deny",
"C:\\projects\\manual_slop_tier2\\**": "allow",
"C:\\Users\\Ed\\AppData\\Local\\manual_slop\\tier2\\**": "allow",
"C:\\Users\\Ed\\AppData\\Local\\manual_slop\\tier2_failures\\**": "allow"
},
"write": {
"*": "deny",
"C:\\projects\\manual_slop_tier2\\**": "allow",
"C:\\Users\\Ed\\AppData\\Local\\manual_slop\\tier2\\**": "allow",
"C:\\Users\\Ed\\AppData\\Local\\manual_slop\\tier2_failures\\**": "allow"
},
"bash": {
"*": "allow",
"git push*": "deny",
"git checkout*": "deny",
"git restore*": "deny",
"git reset*": "deny"
}
}
}
}
}