Repository navigation
feat: merge multi-provider-llm-configuration — construction complete - #94
Merged
Merged
Conversation
MichielDean
force-pushed
the
feature/multi-provider-llm-configuration
branch
4 times, most recently
from
July 25, 2026 19:58
91e6651 to
940b95b
Compare
Implements the full vertical slice for the multi-provider-llm-configuration
feature (19 MVP units):
- migration_017.go: 4 config tables (providers, provider_models, tier_models,
role_overrides) + sentinel __platform__ feature row for audit FK (F-01 fix)
- internal/config: ProviderConfig/ProviderModel/TierModel/RoleOverride/
ResolvedProvider types; ProviderStore + TierStore (DB CRUD); ConfigMerger
(DB+YAML overlay, DB wins); ResolveProvider (tier+override precedence,
fail-fast on missing key); DeriveKeyState (never returns raw key value)
- internal/role: writeOpencodeJSON builder replaces 3 hardcoded ollama blocks;
DispatchRequest.Provider field; buildAgentMD follows resolved model;
buildAgentEnvPairs injects API key into tmux env; opencode.json mode 0600
(carries resolved key, NFR-SEC-01)
- internal/api: config_handlers.go (GET/PUT providers, tiers, role-overrides);
config_guard.go (localhost OR X-Admin-Secret, NFR-SEC-02); routes registered
in server.go; audit via RecordAuditEvent('__platform__', ...)
- internal/db: EventProviderConfigMutated + EventTierConfigMutated constants
- internal/pipeline: ResolveProviderForRole wired at both dispatch sites
- cmd/devteam/main.go: SIGTERM graceful shutdown handler (construction prereq)
- ui/src: AdminProvidersPage two-persona admin UI (Operator providers section
+ Team Lead tier matrix + role overrides); API client + types; route + nav
- no_branches_test.go: static scan enforcing NFR-INTEG-01 (no provider-specific
code branches; presets are data)
All Go tests pass (internal/db, internal/config, internal/api, internal/role,
internal/pipeline). UI builds cleanly (tsc + vite). go vet clean on touched
packages. Secrets never persisted: api_key_env stores $VAR references only;
key_state derived at read time; resolved key lives only in 0600 opencode.json
+ tmux session env.
MichielDean
force-pushed
the
feature/multi-provider-llm-configuration
branch
from
July 25, 2026 20:15
940b95b to
2bee718
Compare
PR #94 CI failed frontend (lint + build) — App.tsx had leftover </Suspense>} /> lines after the /admin/providers route close, causing TS17002/TS1381/TS1382/TS1005 errors. Removed the duplicate closing tags.
MichielDean
added a commit
that referenced
this pull request
Jul 26, 2026
## Summary Enforces the 4-level testing mandate on recently merged features: - **E2E**: `providers.spec.ts` covers `AdminProvidersPage` (multi-provider-llm feature) — page renders, effect-timing banner, operator section, tier matrix, role overrides, navigation - **Smoke**: `smoke_test.go` verifies server starts on a random port and key API endpoints respond (features, repos, settings/defaults, config/providers) ## Why Audit of the 5 merged features (#90, #93, #94, #95) showed: - Unit tests: 543 — good - Integration tests: handler-level httptest tests — good - E2E tests: admin.spec.ts covered settings/admin-ui but NOT multi-provider-llm or github-auth - Smoke tests: no dedicated smoke test verifying server starts and responds This PR closes the e2e and smoke gaps. Co-authored-by: Lobsterdog Contributors <noreply@lobsterdog.dev>
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.
Auto-merged from devteam construction phase for feature multi-provider-llm-configuration