fix(platform-agent): replace undefined conciergePlatformMCPPlugin with conciergePlatformMCPName #3077

Closed
agent-dev-a wants to merge 2 commits from fix/main-red-concierge-mcp-name into main
2 changed files with 3 additions and 3 deletions
@@ -663,8 +663,8 @@ func MaybeProvisionPlatformAgentOnBoot(ctx context.Context, database *sql.DB, pr
return
}
log.Printf("boot: platform-agent %s running but MISSING concierge identity — re-declaring management MCP and restarting once to apply the system prompt + platform MCP", id)
if rec, skip := seedTemplatePlugins(ctx, id, []string{conciergePlatformMCPPlugin}); skip > 0 {
log.Printf("boot: concierge %s could not re-declare %q plugin (recorded=%d skipped=%d) — management MCP may be absent until next provision", id, conciergePlatformMCPPlugin, rec, skip)
if rec, skip := seedTemplatePlugins(ctx, id, []string{conciergePlatformMCPSource}); skip > 0 {
log.Printf("boot: concierge %s could not re-declare %q plugin (recorded=%d skipped=%d) — management MCP may be absent until next provision", id, conciergePlatformMCPSource, rec, skip)
}
go restartByID(id)
return
@@ -318,7 +318,7 @@ func TestMaybeProvisionPlatformAgentOnBoot_RestartsRunningButVanilla(t *testing.
mock.ExpectQuery(kindQuery).WithArgs(bootPlatformID).
WillReturnRows(sqlmock.NewRows([]string{"kind"}).AddRow("platform"))
mock.ExpectExec(`INSERT INTO workspace_declared_plugins`).
WithArgs(bootPlatformID, conciergePlatformMCPPlugin, sqlmock.AnyArg()).
WithArgs(bootPlatformID, conciergePlatformMCPName, sqlmock.AnyArg()).
WillReturnResult(sqlmock.NewResult(0, 1))
// Running, but ExecRead of system-prompt.md returns vanilla content (no