It is possible to pass tokens from a SSI to a Plugin. To the plugin, the interface is the same as if the tokens were passed from a web page. Meaning, you should use HTTP_Token_Value_by_Name() to access the tokens.
For example, in SSI.SSI:
You will need to build the token parameters as you do for html.
<!-#task_stat > could be changed to: