Repository navigation
2026-104: fix(dispatch): fail closed on unverified OpenCode models - #104
Merged
Ivory2024 merged 5 commits intoOct 7, 2026
Merged
Conversation
Ivory2024
added a commit
that referenced
this pull request
Oct 8, 2026
- contract test: capture the node heredoc through a temp file instead of $(...), which stock macOS Bash 3.2 mis-parses as shell when the body holds an odd single quote. - opencode.md: restore the #104 content the #106 merge reverted, dropping the dangling docs/supervision-host.md link. - sessionstart-nudge.md: point the session-start truncation evidence at the existing #native-session-start-delivery anchor.
Ivory2024
deleted the
fm/opencode-free-model-health-gate-namespace-20261007-w9
branch
October 10, 2026 12:36
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.
Intent
Reliability defect (P1 near-P0). The OpenCode free-model health gate silently fails open because of a namespace mismatch.
opencode-free/<model>opencode/<model>cannot verify ... model not tracked, then proceeds.If the gate exists to block dead/expired free models,
not trackedmust NOT be treated as a normal pass. A printed warning is not evidence the gate worked.What Changed
opencode/andopencode-go/dispatch IDs toopencode-free/catalog IDs, requiring exactly one matching health entry.Risk Assessment
✅ Low: The gate now maps both supported dispatch namespaces to the catalog identity and refuses missing or unresolved entries; tests exercise the behavior through spawn outcomes.
Testing
Ran the focused spawn behavior script against the real
fm-spawn.shexecutable with isolated disposable homes, projects, and external-tool doubles. Canonical lookup, fail-closed missing and untracked cases, expiring-model behavior, and ordinary Codex dispatch passed; no UI surface applies.opencode/<model>oropencode-go/<model>when itsopencode-free/<model>health entry is active; spawn proceeds.is_expiring_soon; spawn proceeds with a warning, and ordinary Codex dispatch remains independent of the OpenCode catalog.Evidence: Focused fm-spawn behavior test
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
🔧 **Rebase** - 3 issues found → auto-fixed ✅
bin/fm-spawn.sh- merge conflict rebasing onto origin/fm/opencode-free-model-health-gate-namespace-20261007-w9docs/model-dispatch-rigor.md- merge conflict rebasing onto origin/fm/opencode-free-model-health-gate-namespace-20261007-w9tests/fm-spawn-dispatch-profile.test.sh- merge conflict rebasing onto origin/fm/opencode-free-model-health-gate-namespace-20261007-w9🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
opencode/<model>oropencode-go/<model>when itsopencode-free/<model>health entry is active; spawn proceeds.is_expiring_soon; spawn proceeds with a warning, and ordinary Codex dispatch remains independent of the OpenCode catalog.bash tests/fm-spawn-dispatch-profile.test.sh✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.