sidecar pattern for ai decisions